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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nested3.C
blob
0094783166a6845efc714684ec681e6b740fdc58
1
template <class T1, class T2>
2
class A {
3
template <class S>
4
class SubA {
5
int _k;
6
};
7
T1 _t1;
8
T2 _t2; // { dg-error "instantiated" }
9
};
10
11
template <class U>
12
class B { // { dg-error "" }
13
class SubB1 {
14
B _i; // { dg-error "" }
15
};
16
17
class SubB2 {
18
int _j;
19
};
20
A<U,SubB1>::SubA<SubB2> _a; // { dg-error "" }
21
};
22
23
24
int main() {
25
B<char> objB; // { dg-error "instantiated" }
26
27
return 0;
28
}