re PR c++/65734 (Yet another case of lost alignment by stor_layout)
authorJason Merrill <jason@redhat.com>
Tue, 28 Apr 2015 14:43:48 +0000 (10:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 28 Apr 2015 14:43:48 +0000 (10:43 -0400)
commit7bfc5adac8d7151ed4c5ed13ed230f29c2102d9c
tree67cb947fcbac45db1e0afffa2d193017396302a4
parent544f7fc84123aa03d37cc5325576f0db51d94ef8
re PR c++/65734 (Yet another case of lost alignment by stor_layout)

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.

From-SVN: r222529
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/stor-layout.c
gcc/testsuite/g++.dg/cpp0x/alignas1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/alignas2.C [new file with mode: 0644]