This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82760] Incorrect code generated for aligned new
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Oct 2017 16:13:38 +0000
- Subject: [Bug c++/82760] Incorrect code generated for aligned new
- Auto-submitted: auto-generated
- References: <bug-82760-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82760
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-10-28
Ever confirmed|0 |1
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
If I make the destructor do something (print hello) and I delete[] gFoo, then I
get a crash with c++17 and not c++14, indeed. In c++17 we don't seem to
allocate any extra space to store the array size.