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

lh_mouse at 126 dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 25 09:45:00 GMT 2017


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

Liu Hao <lh_mouse at 126 dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Liu Hao <lh_mouse at 126 dot com> ---
Oh sorry for forgetting about that. I will close this PR.

BTW, despite the viability of silence the warning with a cast, will the warning
eventually go away? The promoted `int` will have its vacuum bits filled with
zeroes so there is no loss of information as if it were promoted to `unsigned`.


More information about the Gcc-bugs mailing list