// { dg-options "-fpermissive -w" } namespace N { template struct S { void f() {} // { dg-bogus "from definition" } }; } namespace K { template <> void N::S::f() {} }