[Bug c++/46806] New: -O3 implies 0 <= 8 <= 7
cstankevitz at toyon dot com
gcc-bugzilla@gcc.gnu.org
Sun Dec 5 01:55:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46806
Summary: -O3 implies 0 <= 8 <= 7
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: cstankevitz@toyon.com
Host: Linux seymour.toyon.corp 2.6.35.6-48.fc14.x86_64 #1
SMP Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64 x86_64
GNU/Linux
Build: g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Created attachment 22636
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22636
sample program
Linux seymour.toyon.corp 2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08 UTC
2010 x86_64 x86_64 x86_64 GNU/Linux
g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Compile the attached source with "g++ test.cpp -O3" and the executable will
report 0<=8<=7.
To make the strange result go away:
- comment out the do-nothing line gValue = EdgeType (or make a number of other
minor changes)
- compile with -O1
More information about the Gcc-bugs
mailing list