// PR c++/13310 struct A {}; template void foo() { A a; a.foo(); // { dg-error "" } }