1// Contributed by Dodji Seketeli <dodji@redhat.com> 2// Origin: PR c++/26693 3// { dg-do compile } 4 5class A 6{ 7 typedef int mytype; // { dg-error "typedef int A::mytype' is private" } 8}; 9 10template <class T> class B : public A 11{ 12 mytype mem; // { dg-error "within this context" } 13}; 14 15B<int> b; // { dg-message "required from here" } 16 17