Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/sizeof-template-argument.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* This used to ICE (PR c++/29573) */ /* { dg-do compile } */ template<int> struct A {}; template<typename> struct B : A <sizeof(=)> {}; /* { dg-error "expected primary-expression" } */ template<typename> struct C : A <sizeof(=)> {}; /* { dg-error "expected primary-expression" } */ int a; template<typename> struct D : A <sizeof(a=1)> {}; /* This used to ICE as well. */ template<typename> struct E : A <sizeof(a=1)> {}; /* This used to ICE as well. */