]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/13983 (no warning on some non-POD struct with packed attribute)
authorJason Merrill <jason@redhat.com>
Thu, 6 Jul 2006 02:09:02 +0000 (22:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 6 Jul 2006 02:09:02 +0000 (22:09 -0400)
commit1937f93932b3249756fbeda05a0b0c67aaed0405
treee5a04b6dd5dab15766d0b02b4b48425818534909
parent562349cab017b2abc827517378ac50a1f4a1f438
re PR c++/13983 (no warning on some non-POD struct with packed attribute)

        PR c++/13983
        PR c++/17519
        * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
        * c-common.c (handle_packed_attribute): So don't copy it here.
        * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
        * cp/class.c (check_field_decls): Check TYPE_PACKED after
        stripping array types.
        (finish_struct_bits): Don't copy TYPE_SIZE here.

From-SVN: r115217
gcc/ChangeLog
gcc/c-common.c
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/stor-layout.c
gcc/testsuite/g++.dg/ext/packed10.C [new file with mode: 0644]