This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67911] new expression fails to align overaligned types
- 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: Fri, 09 Oct 2015 17:13:51 +0000
- Subject: [Bug c++/67911] new expression fails to align overaligned types
- Auto-submitted: auto-generated
- References: <bug-67911-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67911
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(I thought we already had a PR or 2 about this)
The future is likely to be based on
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0035r0.html
but sadly this is moving forward quite slowly.
Users can override the global operator new, so we have no way (unless
-fwhole-program or -flto) to know if this alignment is handled or not. This of
course does not prevent from having a warning that people can chose to
enable/disable.