[Bug c++/50087] New: Weird optimization anomoly with constexpr
eric-gcc at omnifarious dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 15 12:49:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087
Bug #: 50087
Summary: Weird optimization anomoly with constexpr
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: eric-gcc@omnifarious.org
Created attachment 25014
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25014
runs_too_long runs in a very short period of time
I have two nearly identical programs. In one (small.joe.cpp), a function called
'runs_too_long' does not run too long. It is compiled down to returning a
constant value.
In another, very slightly different program (small-nojoe.cpp), the function
'runs_too_long' does indeed run too long. It, in fact will not complete in any
reasonable length of time.
More information about the Gcc-bugs
mailing list