Between 20060207 and 20060209 the testcase started failing like this:

1.exe:
/usr/src/pcarlini/gcc-head/gcc/libstdc++-v3/testsuite/25_algorithms/prev_permutation/1.cc:75:
void test4(): Assertion `array[i] == 5 - i' failed.
FAIL: 25_algorithms/prev_permutation/1.cc execution test

Seems a miscompilation: the problem goes away at -O1. By the way, the failing
test4 is pretty easy to make self contained, I'm attaching it for convenience.


-- 
           Summary: 25_algorithms/prev_permutation/1.cc on powerpc64-linux
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26304

Reply via email to