This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41788] -Wpacked option changes the layout of packed non-POD structs
- 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: 20 Jan 2010 22:15:08 -0000
- Subject: [Bug c++/41788] -Wpacked option changes the layout of packed non-POD structs
- References: <bug-41788-4308@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jason at gcc dot gnu dot org 2010-01-20 22:15 -------
Subject: Bug 41788
Author: jason
Date: Wed Jan 20 22:14:51 2010
New Revision: 156088
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156088
Log:
PR c++/41788
* class.c (layout_class_type): Set packed_maybe_necessary for packed
non-PODs.
Added:
trunk/gcc/testsuite/g++.dg/abi/packed1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41788