3 template<typename T> class A
5 static int i; // { dg-message "private" }
6 friend int T::foo(); // { dg-error "no declaration matches" }
11 void foo() { A<B>::i; } // { dg-message "candidate" }
12 // { dg-error "private within" "" { target *-*-* } .-1 }