Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/error37.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } // PR C++/29388 // We used to ICE in is_ancestor because we would use int as the context of foo // but that is invalid. template<int> struct A { typedef int T; void foo(); }; template<int N> void A<N>::T::foo() {} // { dg-error "" }