1 // PR c++/13925
2 
3 namespace N {
4   template <class T> void f(T);
5 
6   namespace M {
7     class A {
8       friend void f<int>(int);
9     };
10   }
11 
f(T)12   template <class T> void f(T) {}
13   template <> void f<int>(int )
14   {
15     f<long>(0);
16   }
17 }
18