[Bug c++/56123] Union bitfield corruption

timj at gtk dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 28 01:39:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56123

Tim Janik <timj at gtk dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Tim Janik <timj at gtk dot org> 2013-01-28 01:39:40 UTC ---
Thanks for the quick answer Jon, you're right indeed, from the C99 spec:

> If insufficient space remains, whether a bit-field that does not fit is put into the next unit or overlaps adjacent units is implementation-defined.



More information about the Gcc-bugs mailing list