repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
canon-type-13.C
blob
5a8d37d18f3d46386834fb705761a03c054c2d0a
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// { dg-do compile }
3
4
template<class T>
5
struct S0
6
{
7
};
8
9
template<class T>
10
struct S1
11
{
12
};
13
14
template<class T, template<class U> class A, template<class U> class B = A>
15
struct C
16
{
17
B<T> m;
18
};
19
20
void
21
foo()
22
{
23
C<int, S0> s;
24
S0<int> s0;
25
26
s.m = s0;
27
}