[Bug c++/82067] G++ has an internal compiler error in possible_polymorphic_call_targets, at ipa-devirt.c:1557

jupitercuso4 at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 6 16:12:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82067

--- Comment #5 from jupitercuso4 at gmail dot com ---
$ g++ -std=c++11 -O3 --save-temps test.i
test.cpp: In constructor
'xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_core::sc_module_name, const
xtsc_component::xtsc_queue_pin_parms&)':
test.cpp:32:1: internal compiler error: in possible_polymorphic_call_targets,
at ipa-devirt.c:1557
 xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_module_name module_name,
const xtsc_queue_pin_parms& queue_parms) :
 ^
0x6828cb possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, int*)
        ../../gcc-4.9.4/gcc/ipa-devirt.c:1557
0x665cea possible_polymorphic_call_targets(tree_node*, bool*, void**)
        ../../gcc-4.9.4/gcc/ipa-utils.h:142
0xc87198 gimple_fold_call
        ../../gcc-4.9.4/gcc/gimple-fold.c:1127
0xc87198 fold_stmt_1
        ../../gcc-4.9.4/gcc/gimple-fold.c:1302
0xd909b8 fold_marked_statements
        ../../gcc-4.9.4/gcc/tree-inline.c:4549
0xd8c2e0 optimize_inline_calls(tree_node*)
        ../../gcc-4.9.4/gcc/tree-inline.c:4630
0xf48b89 inline_transform(cgraph_node*)
        ../../gcc-4.9.4/gcc/ipa-inline-transform.c:457
0xd1b58a execute_one_ipa_transform_pass
        ../../gcc-4.9.4/gcc/passes.c:2066
0xd1b58a execute_all_ipa_transforms()
        ../../gcc-4.9.4/gcc/passes.c:2107
0xbd8abd expand_function
        ../../gcc-4.9.4/gcc/cgraphunit.c:1775
0xf99653 expand_all_functions
        ../../gcc-4.9.4/gcc/cgraphunit.c:1916
0xf99653 compile()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2260
0xf98f17 finalize_compilation_unit()
        ../../gcc-4.9.4/gcc/cgraphunit.c:2337
0xb149dd cp_write_global_declarations()
        ../../gcc-4.9.4/gcc/cp/decl2.c:4647
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.


More information about the Gcc-bugs mailing list