ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / crash69.C
blob21ed91bb27ee451314013e72047ef0530e9a5c6f
1 // PR c++/31132
3 template<typename T> class A
5   static int i; // { dg-message "private" }
6   friend int T::foo(); // { dg-error "no declaration matches" }
7 };
9 struct B
11   void foo() { A<B>::i; } // { dg-message "candidate" }
12   // { dg-error "private within" "" { target *-*-* } .-1 }