// { dg-do compile } // PR c++/6440: Specialization of member class template. template struct A { template struct B {}; }; template<> template struct A::B { void f(); template void g(V); }; template<> template<> template void A::B::g(V) { } A::B b; int h() { b.f(); b.g(0); }