// { dg-do compile } // Copyright (C) 2003 Free Software Foundation // Contributed by Kriang Lerdsuwanakij // Member template function of member class template as friend template struct A { template struct B { template void f(V); }; }; class X { int i; template template template friend void A::B::f(V); }; template template template void A::B::f(V) { X x; x.i = 0; } int main() { A::B a1; a1.f(0); }