PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef19.C
blob2547857cfff86a12ea1374ef0fc6c95807232676
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/40007
3 // { dg-do compile }
5 class A
7   typedef int mytype; // { dg-message "private" }
8 };
10 template <class T>
11 class B : public A
15 template<class T>
16 class B<T*> : public A
18   mytype mem; // { dg-error "within this context" }
21 B<int*> b;