FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename7.C
blob6b4ef223bd60115cccd06078154922c89cad6ec0
1 // Test for implicit typename
2 // Build don't link:
3 // Special g++ Options:
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;  // WARNING - implicit typename
19     }