http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55428
Kai Tietz <ktietz at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktietz at gcc dot gnu.org --- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-11-21 15:30:12 UTC --- Hmm, it seems that for ms-bitfields the default-field-alignment overrides all field-local alignments. I wouldn't assume that __attribute__((packed)) is directly related to this issue, but of course it is close to it. For the packed-case the issue seems to be that it isn't used for the fields, but for the last element in struct/union. Btw the testcase works nice, if you use in front a #pragma pack(4).