summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/friend36.C
blob: f5cb8d40a0698b360b7e36bcaecdf8d36700a728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

template <class T>
void f(T) {} // { dg-error "previously" }

template <class U>
struct S {
  template <class T>
  friend void f(T) {} // { dg-error "redefinition" }
};

S<int> si;