http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45875
Summary: ice in gimple_fold_obj_type_ref_known_binfo with -O2
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
I just tried to compile package ddd-3.3.12 with the latest 4.6 snapshot
20101002 on a Fedora Linux box. The compiler said
settings.C: At global scope:
settings.C:4009:1: 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.
valgrind said
==2738== Invalid read of size 2
==2738== at 0xD04E9D: gimple_fold_obj_type_ref_known_binfo
(gimple-fold.c:144
4)
==2738== by 0xB190D1: propagate_info_to_inlined_callees (ipa-prop.c:1527)
==2738== by 0xB13CA5: cgraph_decide_inlining (ipa-inline.c:1248)
==2738== by 0x87040E: execute_one_pass (passes.c:1569)
==2738== by 0x870AE9: execute_ipa_pass_list (passes.c:1936)
==2738== by 0xB09A87: cgraph_optimize (cgraphunit.c:1733)
==2738== by 0xB09CC9: cgraph_finalize_compilation_unit (cgraphunit.c:1020)
==2738== by 0x54F55C: cp_write_global_declarations (decl2.c:3928)
==2738== by 0x91041B: toplev_main (toplev.c:951)
==2738== by 0x325FC1EC5C: (below main) (in /lib64/libc-2.12.so)
==2738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==2738==
Preprocessed source code attached. Flag -O2 required.