[Bug c/119011] -Wsign-compare: false positive with integer literals comparing to unsigned integers of rank no less than int
foss+gcc@alejandro-colomar.es
gcc-bugzilla@gcc.gnu.org
Sun Dec 7 15:43:40 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011
Alejandro Colomar <foss+gcc@alejandro-colomar.es> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-Wsign-compare: Split it |-Wsign-compare: false
|into several levels |positive with integer
| |literals comparing to
| |unsigned integers of rank
| |no less than int
--- Comment #19 from Alejandro Colomar <foss+gcc@alejandro-colomar.es> ---
The bug is still unconfirmed. From what I read in the discussion, it seems
there's some agreement that something needs to be done. Would you mind
confirming the bug?
I've retitled.
More information about the Gcc-bugs
mailing list