blob: 4a9042ad3ecf982279af72e6b852f1be21767988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Build don't link:
template <class T>
void f(T) {} // ERROR - previously defined here
template <class U>
struct S {
template <class T>
friend void f(T) {} // ERROR - redeclaration
};
S<int> si;
|