1 namespace N {
2   template <typename T>
3   struct S {
fS4     void f() {}
5   };
6 }
7 
8 namespace K {
f()9   template <> void N::S<char>::f() {} // { dg-error "namespace" }
10 }
11