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