2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename7.C
blobe7f3790aca4ce0228b2d1ec97eb720cb6d4e9e7c
1 // { dg-do assemble  }
2 // { dg-options "" }
3 // Test for implicit typename
5 template <class T>
6 struct A {
7 protected:
8   typedef struct B { } B;
9 };
11 template <class T>
12 struct C { };
14 template <class T>
15 struct D : public A <C <T> > {
16   void f ()
17     {
18       B* new_entries = (B *) 0;  // { dg-warning "" } implicit typename
19     }