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