[Bug c++/100838] [11 Regression] -fno-elide-constructors for C++14 missing required destructor call since r11-5872-g4eb28483004f8291

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 12 20:14:05 GMT 2022


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

--- Comment #8 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:728f97cf0431ff342beceea4f91afa1707133248

commit r11-9985-g728f97cf0431ff342beceea4f91afa1707133248
Author: Jason Merrill <jason@redhat.com>
Date:   Wed Apr 13 20:18:33 2022 -0400

    c++: temp cleanup in new [PR105265]

    The patch for PR100838 in GCC 11 was limited to -fno-elide-constructors for
    safety, but this testcase demonstrates that it's also needed without that
    flag.  So let's switch to the GCC 12 patch for PR100838.

            PR c++/105265
            PR c++/100838

    gcc/cp/ChangeLog:

            * call.c (build_user_type_conversion_1): Drop
            flag_elide_constructors check.
            (convert_like_internal): Likewise.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/initlist-new6.C: New test.


More information about the Gcc-bugs mailing list