2 /* { dg-do "compile" } */
6 template<int> void foo();
13 template<int> void foo(); /* { dg-error "is private" } */
23 int get() const {} /* { dg-error "is private" } */
25 template<bool> struct S {
26 S(unsigned int = BBB::foo()->AAA::get()); /* { dg-error "is not a base of" } */
28 template<bool> struct SS {
29 SS(unsigned int = BBB::foo()->get());
34 B().C::foo<0>(); /* { dg-error "is not a member of" } */
35 BB().AA::foo<0>(); /* { dg-error "within this context" } */
38 i.C::foo<0>(); /* { dg-error "which is of non-class type" } */
41 SS<false> ss; /* { dg-error "within this context" } */