PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / access3.C
blob2b456b1901af37a79a43c36e2e3f37c1ce1df6d3
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-message "private" }
14 int main()
16   A<B> ab;                              // { dg-message "required" }