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

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

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

S<int> si;