[LLVMbugs] [Bug 11572] Right shift of a bit field strips the "unsigned" type property from a bitfield
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Dec 14 13:13:59 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11572
Kevin W. Harris <Kevin.Harris at unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #5 from Kevin W. Harris <Kevin.Harris at unisys.com> 2011-12-14 15:13:59 CST ---
Eli,
Thanks for the explanation. I see it now. Even more to the point,
6.3.1.8 says, in describing integer promotions (2nd to last clause):
"Otherwise, if the type of the operand with signed integer type can represent
all the values of the type of the operand with unsigned integer type, then the
operand with unsigned integer type is converted to the type of the operand with
signed integer type."
I'll withdraw the report.
-Kevin
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list