Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash69.C
blob957f1e19ba3c786437a5e80d0e1bb49930c21e25
1 // PR c++/31132
3 template<typename T> class A
5   static int i; // { dg-error "is private" }
6   friend int T::foo(); // { dg-error "does not match" }
7 };
9 struct B
11   void foo() { A<B>::i; } // { dg-error "within|candidate" }