public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50087] New: Weird optimization anomoly with constexpr
@ 2011-08-15 12:49 eric-gcc at omnifarious dot org
  2011-08-15 13:02 ` [Bug c++/50087] " eric-gcc at omnifarious dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: eric-gcc at omnifarious dot org @ 2011-08-15 12:49 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-13 22:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-15 12:49 [Bug c++/50087] New: Weird optimization anomoly with constexpr eric-gcc at omnifarious dot org
2011-08-15 13:02 ` [Bug c++/50087] " eric-gcc at omnifarious dot org
2011-08-15 13:39 ` [Bug c++/50087] [C++0x] Weird optimization anomaly " paolo.carlini at oracle dot com
2011-08-16 21:49 ` jason at gcc dot gnu.org
2011-08-16 21:52 ` paolo.carlini at oracle dot com
2011-09-02 20:58 ` eric-bugs at omnifarious dot org
2011-09-03  0:49 ` jason at gcc dot gnu.org
2011-09-13 22:55 ` eric-gcc at omnifarious dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).