Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/sizeof-template-argument.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
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 "template argument" } */ template<typename> struct C : A <sizeof(=)> {}; /* { dg-error "template argument" } */ 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. */