OSDN Git Service

2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typedef13.C
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-error "typedef int A::mytype' is 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 "instantiated from here" }
16