// PR c++/60312 // { dg-do compile { target c++1y } } template struct A; template<> struct A // { dg-error "auto|template argument" } { template void foo(); }; void bar() { A().foo<0>(); // { dg-error "auto|template argument" } } // { dg-prune-output "expected" }