2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / nested1.C
blobed2028b3c6a56001a31d5253b3124584073d7a30
1 /* PR c++/4633 */
2 /* { dg-do compile } */
4 // The 'class X' inside the template used to escape (somehow),
5 // so that the typedef claimed that it was redefining X.
7 template <typename T> struct S ;
9 template <> struct S<float>
11   template <class, class> struct R;
12   template <class X> struct R<X, X> { };
14   typedef int X;