[Bug c++/40751] New: G++ never packs typedef'd enums

2009-07-14 Thread bryce dot schober at gmail dot com
ty: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bryce dot schober at gmail dot com GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://gcc.gnu.or

[Bug c++/40751] G++ never packs typedef'd enums

2009-07-14 Thread bryce dot schober at gmail dot com
--- Comment #1 from bryce dot schober at gmail dot com 2009-07-14 19:09 --- Created an attachment (id=18196) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18196&action=view) test case Built without warnings, to try to make sure I'm not doing something marginal

[Bug c++/40751] G++ never packs typedef'd enums

2009-07-14 Thread bryce dot schober at gmail dot com
--- Comment #2 from bryce dot schober at gmail dot com 2009-07-14 22:31 --- I now see that the following syntax packs as expected: typedef enum { ZERO = 0, ONE, TWO } __attribute__ ((packed)) my_enum_t; I have been unable to find a concise definition of how