[Bug 403744] Re: [PR42542] g++ -O3 produces incorrect results for less-than operator

2010-01-15 Thread Nathan Bell
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

[Bug 403744] Re: g++ -O3 produces incorrect results for less-than operator

2009-09-15 Thread Nathan Bell
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

[Bug 403744] Re: g++ -O3 produces incorrect results for less-than operator

2009-07-23 Thread Nathan Bell
** 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

[Bug 403744] [NEW] g++ -O3 produces incorrect results for less-than operator

2009-07-23 Thread Nathan Bell
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. $