[Bug c/16330] Unions handled incorrectly with -fshort-enums
miko at stacken dot kth dot se
gcc-bugzilla@gcc.gnu.org
Fri Jul 2 17:02:00 GMT 2004
------- Additional Comments From miko at stacken dot kth dot se 2004-07-02 17:02 -------
You're going to have to explain this one to me.
1) It works as expected on other platforms
2) If I use char or short, I get 0 in both cases. At least this is consistent,
even though it's surely wrong? But by using an enum, which under -fshort-enums
should be resolved to a char, not a short (single byte is the smallest that can
contain all of the values, and is how large gcc allocates in a struct) it
produces two different values???
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16330
More information about the Gcc-bugs
mailing list