When compiled -m32 with -fgraphite-identity on x86_64-apple-darwin10, the
following three libstdc++ testcases fail there execution tests due to assertion
failures.

FAIL: 23_containers/deque/cons/1.cc execution test
FAIL: 23_containers/deque/modifiers/swap/2.cc execution test
FAIL: 23_containers/deque/modifiers/swap/3.cc execution test
FAIL: 23_containers/vector/modifiers/moveable.cc execution test

The assertions are (in order)...

./1.exe
Assertion failed: (__gnu_test::object_counter::count == 10), function test01,
file
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100821/libstdc++-v3/testsuite/23_containers/deque/cons/1.cc,
line 40.

./2.exe
Assertion failed: (equal(deq03.begin(), deq03.end(), title02)), function
test01, file
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100821/libstdc++-v3/testsuite/23_containers/deque/modifiers/swap/2.cc,
line 68.

/3.exe
Assertion failed: (equal(deq03.begin(), deq03.end(), title02)), function
test01, file
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100821/libstdc++-v3/testsuite/23_containers/deque/modifiers/swap/3.cc,
line 75.

./moveable.exe
Assertion failed: (in.valid == true), function copycounter, file
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100821/libstdc++-v3/testsuite/util/testsuite_rvalref.h,
line 113.
Abort

compiling these testcases without -fgraphite-identity eliminates the execution
failures.


-- 
           Summary: -fgraphite-identity causes assertion failures in
                    libstdc++
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to