Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/typedef11.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// Author: Dodji Seketeli <dodji@redhat.com> // Origin: PR c++/26693 // { dg-do compile } class Alpha { typedef int X; // { dg-message "private" } }; template<int> class Beta { typedef int Y; // { dg-message "private" } }; template <int> int bar () { Beta<0>::Y i = 0; // { dg-error "within this context" } return Alpha::X (); // { dg-error "within this context" } } int i = bar<0> ();