// PR c++/117993 template struct A { void f(); typedef void type; }; template struct B : A { template struct C; }; template template struct B::C : B { void g(C& c) { this->f(); // { dg-bogus "member" } c.f(); // { dg-bogus "member" } C::f(); // { dg-bogus "member" } typename C::type* p; // { dg-bogus "not name a type" } } };