http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59473
Bug ID: 59473
Summary: ice in get_class_context with -O3
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Created attachment 31420
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31420&action=edit
gzipped C++ source code
I just tried to compile the attached source code with flag -O3
with trunk of 20131211 and it said
In file included from /usr/include/QtGui/QListWidget:1:0,
from widgets/iconwidget.h:24,
from widgets/iconwidget.cpp:21:
/usr/include/QtGui/qlistwidget.h: In member function ‘virtual int
IconsetSelectItem::width() const’:
/usr/include/QtGui/qlistwidget.h:90:49: internal compiler error: in
get_class_context, at ipa-devirt.c:851
{ return data(Qt::DisplayRole).toString(); }
^
0xa96269 get_class_context
../../src/trunk/gcc/ipa-devirt.c:851
0xa97b48 contains_type_p
../../src/trunk/gcc/ipa-devirt.c:920
0xa97b48 get_polymorphic_call_info(tree_node*, tree_node*, tree_node**, long*,
ipa_polymorphic_call_context*)
../../src/trunk/gcc/ipa-devirt.c:1034
0x89e231 cgraph_create_indirect_edge(cgraph_node*, gimple_statement_base*, int,
long, int)
../../src/trunk/gcc/cgraph.c:974
0x8a7311 cgraph_clone_edge(cgraph_edge*, cgraph_node*, gimple_statement_base*,
unsigned int, long, int, bool)
../../src/trunk/gcc/cgraphclones.c:136
0xce2e2b copy_bb
../../src/trunk/gcc/tree-inline.c:1760
0xce5768 copy_cfg_body
../../src/trunk/gcc/tree-inline.c:2485
0xce5768 copy_body
../../src/trunk/gcc/tree-inline.c:2708
0xce8f9d expand_call_inline
../../src/trunk/gcc/tree-inline.c:4324
0xce8f9d gimple_expand_calls_inline
../../src/trunk/gcc/tree-inline.c:4432
0xce8f9d optimize_inline_calls(tree_node*)
../../src/trunk/gcc/tree-inline.c:4573
0x11de7ab inline_transform(cgraph_node*)
../../src/trunk/gcc/ipa-inline-transform.c:435
0xb9a495 execute_one_ipa_transform_pass
../../src/trunk/gcc/passes.c:2050
0xb9a495 execute_all_ipa_transforms()
../../src/trunk/gcc/passes.c:2091
0x8a40d0 expand_function
../../src/trunk/gcc/cgraphunit.c:1756
0x8a6398 expand_all_functions
../../src/trunk/gcc/cgraphunit.c:1868
0x8a6398 compile
../../src/trunk/gcc/cgraphunit.c:2203
0x8a69a4 compile
../../src/trunk/gcc/cgraphunit.c:2103
0x8a69a4 finalize_compilation_unit()
../../src/trunk/gcc/cgraphunit.c:2280
0x64e9dc cp_write_global_declarations()
../../src/trunk/gcc/cp/decl2.c:4431
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.