http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58292
Bug ID: 58292 Summary: ICE in ipa-devirt.c Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: t.sintonen at luukku dot com I use gcc with gdc to compile D language programs. With the latest git head I get compiler crash with: internal compiler error: Segmentation fault 0x99b39f crash_signal ../../gcc/gcc/toplev.c:335 0x8413ec tree_check ../../gcc/gcc/tree.h:3689 0x8413ec get_odr_type(tree_node*, bool) ../../gcc/gcc/ipa-devirt.c:263 0x841ac2 build_type_inheritance_graph() ../../gcc/gcc/ipa-devirt.c:360 0x6b6e21 analyze_functions ../../gcc/gcc/cgraphunit.c:854 0x6b8285 finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2151 0x5fe5b4 d_write_global_declarations ../../gcc/gcc/d/d-lang.cc:619 This occurs every time at the end of a class, no matter what the class contains. This is what I got from the gdc expert Iain: Yep reproducible on current development snapshot... raise a bug if you haven't already done so. Fix is simple enough (move generation of BINFO out of toDebug as is required regardless of whether -g was sent on the command-line).