summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/spec25.C
blob: 3f641fe5a212b3cee86eb0af810e60350db439e5 (plain)
1
2
3
4
5
6
7
8
9
10
namespace N {
  template <typename T>
  struct S {
    void f() {}
  };
}

namespace K {
  template <> void N::S<char>::f() {} // { dg-error "namespace|definition" }
}