https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61885
Bug ID: 61885
Summary: [4.10 Regression] ICE: in types_same_for_odr, at
ipa-devirt.c:383 with LTO
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: d.g.gorbachev at gmail dot com
CC: hubicka at gcc dot gnu.org
Target: i686-pc-linux-gnu
Created attachment 33175
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33175&action=edit
Testcase
GCC 4.10.0 20140720 (experimental).
$ gcc -flto -nostdlib -shared PR-61885.C
In function 'main':
lto1: internal compiler error: in types_same_for_odr, at ipa-devirt.c:383
0x83d423a types_same_for_odr(tree_node const*, tree_node const*)
../../gcc-4.10/gcc/ipa-devirt.c:383
0x83d4274 get_class_context
../../gcc-4.10/gcc/ipa-devirt.c:1762
0x83d48b7 contains_type_p
../../gcc-4.10/gcc/ipa-devirt.c:1849
0x83da8d1 get_polymorphic_call_info(tree_node*, tree_node*, tree_node**, long
long*, ipa_polymorphic_call_context*, gimple_statement_base*)
../../gcc-4.10/gcc/ipa-devirt.c:2161
0x81ddbbc cgraph_create_indirect_edge(cgraph_node*, gimple_statement_base*,
int, long long, int)
../../gcc-4.10/gcc/cgraph.c:970
0x81e173f rebuild_cgraph_edges()
../../gcc-4.10/gcc/cgraphbuild.c:453
Please submit a full bug report,
with preprocessed source if appropriate.
Appeared in 212128 < r <= 212315.