// PR c++/14283 struct A {}; namespace N {} template struct C { typedef A::template INVALID X0; // { dg-error "23:'INVALID' in 'struct A' does not name a template type" } typedef N::template INVALID X1; // { dg-error "23:'INVALID' in namespace 'N' does not name a template type" } };