aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/spec36.C
blob: 7e8dc5241d9f43f1bd28a3ace8faa1a37b7a41a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c++/38089 */
/* { dg-do compile } */

struct basic_string
{
  basic_string(const int __s);
};
namespace MyNS {
  class MyClass {
    template <typename T>
    T test() { } /* { dg-error "from definition" } */
  };
}
template <>
basic_string MyNS::MyClass::test() /* { dg-error "specialization of" } */
{ return 1; }