blob: d312b3854ea9f256cbc83bf48be3b39a42ab5619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Build don't link:
template <class T>
struct S
{
template <class U = T>
friend class S;
void f(T);
};
template struct S<int>;
void g()
{
S<> s;
s.f(3);
}
|