FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash38.C
blob49270644395f81f966c7383887fcbd1273e36a71
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 struct S {
6   typedef typename T::Y<T>::Z X; // ERROR - No Y in A
7   X x; // ERROR - No Y in A
8 };
10 struct A {
11   struct Y {
12     typedef A Z;
13   };
16 template struct S<A>;