[Bug c++/77742] Warning about placement new for over-aligned type

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 12 18:34:00 GMT 2016


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct 12 18:04:51 2016
New Revision: 241073

URL: https://gcc.gnu.org/viewcvs?rev=241073&root=gcc&view=rev
Log:
        PR c++/77742 - -Waligned-new and placement new.
        * init.c (build_new_1): Don't -Waligned-new about placement new.
        (malloc_alignment): New.  Consider MALLOC_ABI_ALIGNMENT.
        * decl.c (cxx_init_decl_processing): New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/init.c


More information about the Gcc-bugs mailing list