[Bug c++/65734] Yet another case of lost alignment by stor_layout
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 17 15:45:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65734
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Aug 17 15:44:35 2015
New Revision: 226941
URL: https://gcc.gnu.org/viewcvs?rev=226941&root=gcc&view=rev
Log:
PR c++/65734
gcc/
* stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
(finalize_type_size): Respect TYPE_USER_ALIGN.
(layout_type) [ARRAY_TYPE]: Likewise.
gcc/cp/
* class.c (fixup_attribute_variants): Respect TYPE_USER_ALIGN.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/alignas1.C
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/alignas2.C
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/class.c
branches/gcc-5-branch/gcc/stor-layout.c
More information about the Gcc-bugs
mailing list