Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/crash38.C

raw
1 // { dg-do assemble }
2 // Origin: Mark Mitchell <[email protected]>
3
4 template <class T>
5 struct S {
6 typedef typename T::Y<T>::Z X; // { dg-error "not a class template" } No Y in A
7 X x;
8 };
9
10 struct A {
11 struct Y {
12 typedef A Z;
13 };
14 };
15
16 template struct S<A>;