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