4 // Enforcing access of typename type.
6 template <class T> struct A {
7 typename T::X x; // { dg-error "this context" }
8 int f() { return T::i; } // { dg-error "this context" }
12 typedef int X; // { dg-error "private" }
13 static int i; // { dg-error "private" }
18 A<B> ab; // { dg-error "instantiated" }
19 ab.f(); // { dg-error "instantiated" }