https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113232
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is not a bug.
Without -fpacked-struct, e.b and e.d.c does not have any bits in common due to
a padding field in `struct a` because of the alignment of short is 2. But with
-fpacked-struct, the padding byte/field goes away and you get an overlap.