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

            Bug ID: 58903
           Summary: ICE: SIGSEGV in hash_table::find_slot_with_hash() with
                    -O -fdevirtualize-speculatively
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 31099
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31099&action=edit
reduced testcase

Compiler output:
$ gcc -O -fdevirtualize-speculatively testcase.C
testcase.C:12:1: internal compiler error: Segmentation fault
 }
 ^
0xc23e6f crash_signal
        /mnt/svn/gcc-trunk/gcc/toplev.c:335
0xa4c221 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
0xa49d0c get_odr_type(tree_node*, bool)
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:402
0xa4b3d4 possible_polymorphic_call_targets(tree_node*, long, bool*, void**)
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:798
0xa4b9c3 possible_polymorphic_call_targets
        /mnt/svn/gcc-trunk/gcc/ipa-utils.h:89
0xa4b9c3 ipa_devirt
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:999
0xa4b9c3 execute
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:1181
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.

Tested revisions:
r203876 - ICE

Reply via email to