Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/typedef19.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Contributed by Dodji Seketeli <dodji@redhat.com> |
2 // Origin PR c++/40007 | |
3 // { dg-do compile } | |
4 | |
5 class A | |
6 { | |
7 typedef int mytype; // { dg-message "private" } | |
8 }; | |
9 | |
10 template <class T> | |
11 class B : public A | |
12 { | |
13 }; | |
14 | |
15 template<class T> | |
16 class B<T*> : public A | |
17 { | |
18 mytype mem; // { dg-error "within this context" } | |
19 }; | |
20 | |
21 B<int*> b; |