1 // PR c++/29020 2 3 template<int> struct A 4 { 5 void foo(); 6 }; 7 8 struct B 9 { 10 template<int N> friend void A<N>::A::foo(); 11 }; 12 13