[Bug c++/123127] -Wsign-conversion should consider control-flow sentive range and only warn if problematic numbers are possible

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 15 11:47:26 GMT 2025


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Other warnings are implemented in the middle-end and so do actually have
information about possible value ranges. Some warnings are implemented purely
in the front-end and only consider the types involved, not values.


More information about the Gcc-bugs mailing list