This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56123] Union bitfield corruption
- From: "timj at gtk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Jan 2013 01:39:40 +0000
- Subject: [Bug c++/56123] Union bitfield corruption
- Auto-submitted: auto-generated
- References: <bug-56123-4@http.gcc.gnu.org/bugzilla/>
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.