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

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

https://gcc.gnu.org/g:394c852a6b4bed8117c790c2cd1553e224975ad5

commit r11-9982-g394c852a6b4bed8117c790c2cd1553e224975ad5
Author: Jason Merrill <ja...@redhat.com>
Date:   Sun Mar 27 12:36:13 2022 -0400

    c++: low -faligned-new [PR102071]

    This test ICEd after the constexpr new patch (r10-3661) because alloc_call
    had a NOP_EXPR around it; fixed by moving the NOP_EXPR to alloc_expr.  And
    the PR pointed out that the size_t cookie might need more alignment, so I
    fix that as well.

            PR c++/102071

    gcc/cp/ChangeLog:

            * init.c (build_new_1): Include cookie in alignment.  Omit
            constexpr wrapper from alloc_call.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/aligned-new9.C: New test.

Reply via email to