// { dg-do assemble } // { dg-options "-Wno-deprecated" } template struct B { typedef T X; }; template struct S : public B { struct I { void f(X x); // { dg-error "'X' has not been declared" } implicit typename }; };