[Bug c/51568] Enum value is not extracted properly via a union

eugene at hutorny dot in.ua gcc-bugzilla@gcc.gnu.org
Thu Dec 15 20:07:00 GMT 2011


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

--- Comment #3 from Eugene <eugene at hutorny dot in.ua> 2011-12-15 19:44:34 UTC ---

>On linux sizeof (struct rec) is 7, so how do you expect an unsigned (size = 4)
to hold the entire value?

Agree, that was my mistake.
I misexpected the enum to fit one byte.



More information about the Gcc-bugs mailing list