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

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

https://gcc.gnu.org/g:164c6a1c5d7f99235f1a41440eacac7a977e8fbd

commit r12-8114-g164c6a1c5d7f99235f1a41440eacac7a977e8fbd
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Apr 12 16:06:18 2022 -0400

    c++: non-array new alignment [PR102071]

    While considering the PR102071 patch for backporting, I noticed that I was
    considering the alignment of the array new cookie even when there isn't one
    because we aren't allocating an array.

            PR c++/102071

    gcc/cp/ChangeLog:

            * init.cc (build_new_1): Check array_p for alignment.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/aligned-new9.C: Add single-object test.

Reply via email to