[Bug c++/92675] sign-conversion C++ unsigned int j = -1;

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 26 15:28:00 GMT 2019


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's an idiomatic way to get the largest unsigned value, it would be a shame
if it warned.


More information about the Gcc-bugs mailing list