This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13983] no warning on some non-POD struct with packed attribute
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2006 03:33:28 -0000
- Subject: [Bug c++/13983] no warning on some non-POD struct with packed attribute
- References: <bug-13983-7764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from jason at gcc dot gnu dot org 2006-07-06 03:33 -------
Subject: Bug 13983
Author: jason
Date: Thu Jul 6 03:33:20 2006
New Revision: 115220
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115220
Log:
PR c++/13983
PR c++/17519
* stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
* cp/class.c (check_field_decls): Check TYPE_PACKED after
stripping array types.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/ext/packed10.C
- copied unchanged from r115219,
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/packed10.C
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/class.c
branches/gcc-4_0-branch/gcc/stor-layout.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13983