1 2 3 4 5 6
// PR c++/58535 struct A { template<int> virtual void foo(); // { dg-error "templates" } };