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
Showing
gcc/testsuite/g++.dg/ext/packed10.C
0 → 100644
Please
register
or
sign in
to comment