[Bug c/83151] Explicit unsigned bitfields are treated as signed ones

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Sat Nov 25 09:29:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83151

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
The operand of ~ is promoted to int first, thus the type of the result is also
int which is then implicitly converted to unsigned int on return.


More information about the Gcc-bugs mailing list