summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/explicit8.C
blob: 4b92dbe39e48db19e1937b54202ed7146257771c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
namespace N {
  template <typename T>
  struct S {
    void f() {}
  };
  namespace I {
    template void S<double>::f(); // { dg-error "namespace" }
  }
}

namespace K {
  template void N::S<int>::f(); // { dg-error "namespace" }
}