re PR c++/65690 (typedef alignment lost since r219705)
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Apr 2015 15:06:56 +0000 (17:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Apr 2015 15:06:56 +0000 (17:06 +0200)
commit00da5e285de9a4412a9ed6e73668234fa84e17fa
treebe2f114d36e00d3f2062e49fb089f07e7a23b6b2
parentfb728653b626594d13ae0fbf78e33c108cf8a8da
re PR c++/65690 (typedef alignment lost since r219705)

PR c++/65690
* tree.c (build_cplus_array_type): Layout type before variants are
set, but copy over TYPE_SIZE and TYPE_SIZE_UNIT from the main
variant.

* c-c++-common/attr-aligned-1.c: New test.

From-SVN: r221952
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog