blob: 957f1e19ba3c786437a5e80d0e1bb49930c21e25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/31132
template<typename T> class A
{
static int i; // { dg-error "is private" }
friend int T::foo(); // { dg-error "does not match" }
};
struct B
{
void foo() { A<B>::i; } // { dg-error "within|candidate" }
};
|