1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// Test for implicit typename // Build don't link: // Special g++ Options: template <class T> struct A { protected: typedef struct B { } B; }; template <class T> struct C { }; template <class T> struct D : public A <C <T> > { void f () { B* new_entries = (B *) 0; } };