** Bug watch added: GCC Bugzilla #42542
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42542
** Also affects: gcc via
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42542
Importance: Unknown
Status: Unknown
--
g++ -O3 produces incorrect results for less-than operator
** Changed in: gcc
Status: Unknown = New
--
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
it's a bug in your test case, result is overflowing. use `long' instead
** Changed in: gcc-4.3 (Ubuntu)
Status: New = Invalid
--
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
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
** 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.
--