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

Daniel Marjamäki <daniel.marjamaki at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.marjamaki at gmail dot 
com

--- Comment #62 from Daniel Marjamäki <daniel.marjamaki at gmail dot com> ---
> I think using run-time warnings will miss a lot of bugs, compared to compile 
> time warnings.

I fully agree. This current situation is just dangerous.

In my humble opinion, the optimisations should be disabled until proper
warnings are written.

It is no silver bullet but to give a little confidence in your code you can
currently use Cppcheck. Cppcheck writes a warning with id
invalidTestForOverflow for `int + 100 > int`.

Reply via email to