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

Related valgrind output:
$ valgrind -q --trace-children=yes
-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
==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
gcc: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <> 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 -
           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

Reply via email to