// { dg-do assemble } // Origin: Mark Mitchell template struct S { typedef typename T::Y::Z X; // { dg-error "not a class template" } No Y in A X x; }; struct A { struct Y { typedef A Z; }; }; template struct S;