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

2018-03-10 Thread dlesnikov at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816 --- Comment #7 from Dmitry Lesnikov --- (In reply to Andrew Pinski from comment #5) > (In reply to Dmitry Lesnikov from comment #4) > > (In reply to Andrew Pinski from comment #1) > > > signed overflow is undefined behavior at runtime. > > > >

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

2018-03-10 Thread dlesnikov at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816 --- Comment #6 from Dmitry Lesnikov --- (In reply to Andrew Pinski from comment #5) > (In reply to Dmitry Lesnikov from comment #4) > > (In reply to Andrew Pinski from comment #1) > > > signed overflow is undefined behavior at runtime. > > > >

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

2018-03-10 Thread dlesnikov at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816 --- Comment #4 from Dmitry Lesnikov --- (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.

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

2018-03-10 Thread dlesnikov at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816 Dmitry Lesnikov changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

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

2018-03-10 Thread dlesnikov at hotmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dlesnikov at hotmail dot com Target Milestone: --- Hello! # g++-7 --version g++-7 (Ubuntu 7.2.0-8ubuntu3.1~16.04.york0) 7.2.0 # g++-8 --version g++-8 (Ubuntu 8-20180218-1ubuntu1