1// DR 401 2 3class X { 4 typedef int a; // { dg-error "private" } 5 static const int b = 5; // { dg-error "private" } 6 template <typename> 7 struct c; // { dg-error "private" } 8}; 9 10template <typename = X::a> // { dg-error "context" } 11struct A; 12 13template <int = X::b> // { dg-error "context" } 14struct B; 15 16template <template <typename> class T = X::c> // { dg-error "context" } 17struct C; 18 19 20