// PR c++/13310

struct A {};

template <typename> void foo()
{
    A a;
    a.foo<int>(); // { dg-error "" }
}


syntax highlighted by Code2HTML, v. 0.9.1