This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50087] New: Weird optimization anomoly with constexpr


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]