[Bug c++/40991] New: ICE: at optimization -02

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 6 18:09:00 GMT 2009


The following gives:

%/mnt/share/bld/gcc/./gcc/g++ -shared-libgcc -B/mnt/share/bld/gcc/./gcc
-nostdinc++ -L/mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/mnt/share/bld/H-x86-gcc/x86_64-unknown-linux-gnu/bin/
-B/mnt/share/bld/H-x86-gcc/x86_64-unknown-linux-gnu/lib/ -isystem
/mnt/share/bld/H-x86-gcc/x86_64-unknown-linux-gnu/include -isystem
/mnt/share/bld/H-x86-gcc/x86_64-unknown-linux-gnu/sys-include -g -O2
-D_GLIBCXX_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -g -O2 -D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/mnt/share/bld/gcc/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/mnt/share/src/gcc/libstdc++-v3/libsupc++
-I/mnt/share/src/gcc/libstdc++-v3/include/backward
-I/mnt/share/src/gcc/libstdc++-v3/testsuite/util
/mnt/share/src/gcc/libstdc++-v3/testsuite/tr1/3_function_objects/function/5.cc
-include bits/stdc++.h ./libtestc++.a -Wl,--gc-sections -c -lm -o ./5.exe
/mnt/share/src/gcc/libstdc++-v3/testsuite/tr1/3_function_objects/function/5.cc:
In function ‘void test05()’:
/mnt/share/src/gcc/libstdc++-v3/testsuite/tr1/3_function_objects/function/5.cc:30:6:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


If it's compiled with -O0, -O1 then it's ok.


-- 
           Summary: ICE: at optimization -02
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bkoz at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list