blob: 2b456b1901af37a79a43c36e2e3f37c1ce1df6d3 [file] [log] [blame]
// { dg-do compile }
// PR c++/5387
// Enforcing access of typename type.
template <class T> struct A {
typename T::template X<int> x; // { dg-error "this context" }
};
class B {
template <class T> class X {}; // { dg-message "private" }
};
int main()
{
A<B> ab; // { dg-message "required" }
}