1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do assemble } // { dg-options "-Wno-deprecated" } template <class T> struct B { typedef T X; }; template <class T> struct S : public B<T> { struct I { void f(X x); // { dg-error "'X' has not been declared" } implicit typename }; };