[Bug c++/104646] [9 Regression] ICE in cx_check_missing_mem_inits, at cp/constexpr.cc:845

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 13 17:41:39 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104646

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:7b4bd8dbd8d07e298528b0f033102ce8f693e739

commit r9-10171-g7b4bd8dbd8d07e298528b0f033102ce8f693e739
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Apr 14 15:34:14 2022 -0400

    c++: constexpr trivial -fno-elide-ctors [PR104646]

    The constexpr constructor checking code got confused by the expansion of a
    trivial copy constructor; we don't need to do that checking for defaulted
    ctors, anyway.

            PR c++/104646

    gcc/cp/ChangeLog:

            * constexpr.c (maybe_save_constexpr_fundef): Don't do extra
            checks for defaulted ctors.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/constexpr-fno-elide-ctors1.C: New test.


More information about the Gcc-bugs mailing list