Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / template / access3.C
blobe8ee1041d13c8bff15525ec42350af6cfc00f823
1 // { dg-do compile }
3 // PR c++/5387
4 // Enforcing access of typename type.
6 template <class T> struct A {
7   typename T::template X<int> x;        // { dg-error "this context" }
8 };
10 class B {
11   template <class T> class X {};        // { dg-error "private" }
14 int main()
16   A<B> ab;                              // { dg-error "instantiated" }