[Bug c/31166] Integer hex constant does not follow promoting rules
roberto dot gordo at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 14 09:28:00 GMT 2007
------- Comment #6 from roberto dot gordo at gmail dot com 2007-03-14 09:27 -------
I think I've found something. According to the ISO C standard, a decimal
constant without suffixes should ALWAYS be signed int (or signed long long if
it does not fit), but never be unsigned! An octal or hexadecimal constant
without suffixes may be unsigned when it does not fit on a signed. I was not
aware of this, sorry (and according to your comments, I think neither you were,
because the explanations that you gave to my bug report were not true).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31166
More information about the Gcc-bugs
mailing list