[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec36.C
blob5807fc516dffca64ec6853cddfebc4ebb5268d95
1 /* PR c++/38089 */
2 /* { dg-do compile } */
4 struct basic_string
6   basic_string(const int __s);
7 };
8 namespace MyNS {
9   class MyClass {
10     template <typename T>
11     T test() { } /* { dg-message "from definition" "" { target c++98_only } } */
12   };
14 template <>
15 basic_string MyNS::MyClass::test() /* { dg-error "specialization of" "" { target c++98_only } }*/
16 { return 1; }