Thanks Matthias!
--
[PR42542] g++ -O3 produces incorrect results for less-than operator
https://bugs.launchpad.net/bugs/403744
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
http
All of those numbers are less than 4294967296 (i.e. 2^32), so they can
be stored in 32-bit *unsigned* integers.
Nevermind that "overflow" refers to the result of an arithmetic
operation, and no arithmetic operations are being used here.
Please don't dismiss this issue with nothing more than a cur
** Attachment added: "bug.cpp"
http://launchpadlibrarian.net/29430733/bug.cpp
--
g++ -O3 produces incorrect results for less-than operator
https://bugs.launchpad.net/bugs/403744
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubu
Public bug reported:
Binary package hint: g++-4.3
g++ appears to be (incorrectly) using a signed int comparison when -O3
optimization is enabled. Compiling with -O2 or lower produces the
correct output.
This problem was observed on Ubuntu 9.04 x86_64. The source code
(bug.cpp) is attached.
$