[Bug c/100702] Strict overflow warning regression in gcc 8 onwards

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 20 17:43:43 GMT 2021


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |msebor at gcc dot gnu.org
           Severity|normal                      |enhancement
   Last reconfirmed|                            |2021-05-20
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
It should be possible to detect the wide-spread 'i < i + 1' anipattern in the
front ends without too many false positives (with __builtin_warning it should
even be able to avoid them in dead code).  Let me confirm this request on that
basis.


More information about the Gcc-bugs mailing list