blob: 7c423598723afcf7819b37c63e8a7761b4bc3ce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Bug: forward reference to friend doesn't work in template.
// Build don't link:
template <class T> class A {
static int i;
friend struct B;
};
struct B {
void f () { A<int>::i = 0; }
};
|