Command line:
$ gcc -std=gnu++0x -O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug
testcase.C

Related valgrind output:
$ valgrind -q --trace-children=yes
/mnt/svn/gcc-trunk/binary-163921-lto-fortran-checking-yes-rtl-df/bin/gcc
-std=gnu++0x -O1 -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug testcase.C
==29279== Invalid read of size 8
==29279==    at 0x5D244C: cp_build_unary_op (typeck.c:5083)
==29279==    by 0x4E0E81: build_new_method_call (call.c:6461)
==29279==    by 0x53C33D: tsubst_copy_and_build (pt.c:12572)
==29279==    by 0x52D1B8: tsubst_expr (pt.c:12054)
==29279==    by 0x533C43: tsubst (pt.c:10696)
==29279==    by 0x5961E0: dump_function_decl (error.c:315)
==29279==    by 0x5968F8: decl_as_string (error.c:2372)
==29279==    by 0x612CA9: cxx_printable_name_internal (tree.c:1440)
==29279==    by 0xAA375D: dump_enumerated_decls (tree-ssa-live.c:1268)
==29279==    by 0xA406F8: execute_cleanup_cfg_post_optimizing
(tree-optimize.c:214)
==29279==    by 0x8FD47E: execute_one_pass (passes.c:1569)
==29279==    by 0x8FD724: execute_pass_list (passes.c:1624)
==29279==  Address 0x20 is not stack'd, malloc'd or (recently) free'd
==29279== 
gcc: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r163921 - crash
r163636 - crash
r161659 - OK
r161170 - OK
4.5 r163761 - OK


-- 
           Summary: [4.6 Regression] ICE: SIGSEGV in cp_build_unary_op
                    (typeck.c:5083) with -std=gnu++0x -fipa-cp-clone -
                    fcompare-debug
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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

Reply via email to