diff options
author | Jason Merrill <jason@redhat.com> | 2022-03-27 12:36:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-03-28 09:35:58 -0400 |
commit | 19b87a06482756739087283cd8b884cb3de693f9 (patch) | |
tree | 58b0513fc73bd96d9ae2bb7fe9316f8bf89a322f /gcc/cp/constraint.cc | |
parent | 8796eb27e24bd3340ebd393e96a94b91d09407e9 (diff) | |
download | gcc-19b87a06482756739087283cd8b884cb3de693f9.zip gcc-19b87a06482756739087283cd8b884cb3de693f9.tar.gz gcc-19b87a06482756739087283cd8b884cb3de693f9.tar.bz2 |
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.cc (build_new_1): Include cookie in alignment. Omit
constexpr wrapper from alloc_call.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/aligned-new9.C: New test.
Diffstat (limited to 'gcc/cp/constraint.cc')
0 files changed, 0 insertions, 0 deletions