Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/typedef13.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++/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 |