[Bug c++/84816] [7.2.0/8.0.1 x86_64] Incorrect code generation if signed overflow

dlesnikov at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 11 02:27:00 GMT 2018


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

--- Comment #4 from Dmitry Lesnikov <dlesnikov at hotmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> signed overflow is undefined behavior at runtime.

for(int i=0; i<10; i++)

this loop is correct.


More information about the Gcc-bugs mailing list