1/* PR c++/38089 */ 2/* { dg-do compile } */ 3 4struct basic_string 5{ 6 basic_string(const int __s); 7}; 8namespace MyNS { 9 class MyClass { 10 template <typename T> 11 T test() { } /* { dg-error "from definition" } */ 12 }; 13} 14template <> 15basic_string MyNS::MyClass::test() /* { dg-error "specialization of" } */ 16{ return 1; } 17