2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename9.C
blobd619b583fc42b9f1c2148173543951edeade5d6f
1 // { dg-do run  }
2 // { dg-options "-w" }
3 // Test to make sure that implicit typename doesn't break name binding rules.
5 typedef double A;
6 template<class T> class B {
7   typedef char A;
8 };
9 template<class T> struct X : B<T> {
10   A a;
13 int main()
15   X<char*> x;
16   return sizeof (x.a) != sizeof (double);