1 // PR c++/13310 2 3 struct A {}; 4 foo()5 template <typename> void foo() 6 { 7 A a; 8 a.foo<int>(); // { dg-error "" } 9 } 10