Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/typedef19.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Contributed by Dodji Seketeli <dodji@redhat.com> // Origin PR c++/40007 // { dg-do compile } class A { typedef int mytype; // { dg-message "private" } }; template <class T> class B : public A { }; template<class T> class B<T*> : public A { mytype mem; // { dg-error "within this context" } }; B<int*> b;