// PR c++/94057 - template keyword in a typename-specifier. // { dg-do compile { target c++11 } } template struct A { template struct W { }; }; void g () { // class-key nested-name-specifier template[opt] simple-template-id struct A::W w; struct A::template W w2; }