[Bug c++/82760] Incorrect code generated for aligned new
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 29 21:01:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82760
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Nov 29 21:01:23 2017
New Revision: 255253
URL: https://gcc.gnu.org/viewcvs?rev=255253&root=gcc&view=rev
Log:
PR c++/82760 - memory corruption with aligned new.
* call.c (build_operator_new_call): Update *args if we add the
align_arg.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/aligned-new8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
More information about the Gcc-bugs
mailing list