1 // PR c++/47198 2 // { dg-do compile { target c++11 } } 3 4 struct S 5 { 6 template < int > sometype foo (); // { dg-error "sometype. does not name a type" } 7 S () = default; 8 }; 9