[Bug c++/105245] [10/11 Regression] ICE in clear_no_implicit_zero, in cp/constexpr.cc:1892
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 12 20:13:57 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105245
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:fe81f5bd3c3e764d1355eda3e44e37cec99cd23c
commit r11-9984-gfe81f5bd3c3e764d1355eda3e44e37cec99cd23c
Author: Jason Merrill <jason@redhat.com>
Date: Tue Apr 12 17:46:59 2022 -0400
c++: empty base constexpr -fno-elide-ctors [PR105245]
The patch for 100111 extended our handling of empty base elision to the
case
where the derived class has no other fields, but we still need to make sure
that there's some initializer for the derived object.
PR c++/105245
PR c++/100111
gcc/cp/ChangeLog:
* constexpr.c (cxx_eval_store_expression): Build a CONSTRUCTOR
as needed in empty base handling.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1y/constexpr-empty2.C: Add -fno-elide-constructors.
More information about the Gcc-bugs
mailing list