http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59355
Bug ID: 59355 Summary: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fno-devirtualize Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 31340 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31340&action=edit reduced testcase Compiler output: $ gcc -O2 -fno-devirtualize testcase.C testcase.C:10:1: internal compiler error: Segmentation fault } ^ 0xc985ef crash_signal /mnt/svn/gcc-trunk/gcc/toplev.c:336 0xaad8d1 hash_table<odr_hasher, xcallocator>::find_slot_with_hash(tree_node const*, unsigned int, insert_option) /mnt/svn/gcc-trunk/gcc/hash-table.h:774 0xaaaa4c get_odr_type(tree_node*, bool) /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:413 0xaac2e5 possible_polymorphic_call_targets(tree_node*, long, ipa_polymorphic_call_context, bool*, void**) /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:1191 0xaacf8e possible_polymorphic_call_targets /mnt/svn/gcc-trunk/gcc/ipa-utils.h:114 0xaacf8e ipa_devirt /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:1455 0xaacf8e execute /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:1637 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-205547-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-205547-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20131130 (experimental) (GCC) Tested revisions: r205547 - crash 4.8 r204890 - OK