summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/lookup5.C
blob: 022202a7158c3d4e35fc3bc060957714d1a2cc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/13925

namespace N {
  template <class T> void f(T);

  namespace M {
    class A {
      friend void f<int>(int);
    };
  }

  template <class T> void f(T) {}
  template <> void f<int>(int )
  { 
    f<long>(0);
  }
}