re PR c++/41788 (-Wpacked option changes the layout of packed non-POD structs)
authorJason Merrill <jason@redhat.com>
Wed, 20 Jan 2010 22:14:51 +0000 (17:14 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 20 Jan 2010 22:14:51 +0000 (17:14 -0500)
commita402c1b130af88d5f5294dc977ec91dabbe6c388
tree802bce9f55fb35b31fd3f8a8aca0689ec1189ba8
parent1f4a7a481f5d76f2932c69f17adffd6bc37add04
re PR c++/41788 (-Wpacked option changes the layout of packed non-POD structs)

PR c++/41788
* class.c (layout_class_type): Set packed_maybe_necessary for packed
non-PODs.

From-SVN: r156088
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/packed1.C [new file with mode: 0644]