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