// PR c++/60311 // { dg-do compile { target c++1y } } template struct A {}; // { dg-error "auto" } struct B { template struct A {}; // { dg-error "auto" } }; template struct C { template struct A {}; // { dg-error "auto" } }; using D = C;