blob: af3e0a3f0b862b5547885e00fcb6b30a26b2c257 [file] [log] [blame]
// DR 401
class X {
typedef int a; // { dg-message "private" }
static const int b = 5; // { dg-message "private" }
template <typename>
struct c; // { dg-message "private" }
};
template <typename = X::a> // { dg-error "context" }
struct A;
template <int = X::b> // { dg-error "context" }
struct B;
template <template <typename> class T = X::c> // { dg-error "context" }
struct C;