https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63587
Bug ID: 63587 Summary: [5 Regression] ICE : tree check: expected var_decl, have result_decl in add_local_variables, at tree-inline.c:4112 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: marxin at gcc dot gnu.org trippels@gcc1-power7 status % g++ -c -w -std=c++11 -O2 form_attr.ii form_attr.ii: In static member function ‘static int boost::function_obj_invoker0<FunctionObj>::invoke(boost::function_buffer&) [with FunctionObj = boost::test_case_template_invoker<default_formatting_invoker>]’: form_attr.ii:216:66: internal compiler error: tree check: expected var_decl, have result_decl in add_local_variables, at tree-inline.c:4112 make_output_actor<actor<LeftExprT>, attribute_actor<T> >::make (left, right); ^ 0x10c686af tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9185 0x10a1161f tree_check ../../gcc/gcc/tree.h:2733 0x10a1161f add_local_variables ../../gcc/gcc/tree-inline.c:4112 0x10a1c39f expand_call_inline ../../gcc/gcc/tree-inline.c:4389 0x10a1c39f gimple_expand_calls_inline ../../gcc/gcc/tree-inline.c:4518 0x10a1c39f optimize_inline_calls(tree_node*) ../../gcc/gcc/tree-inline.c:4659 0x10fc7acf inline_transform(cgraph_node*) ../../gcc/gcc/ipa-inline-transform.c:460 0x1089755f execute_one_ipa_transform_pass ../../gcc/gcc/passes.c:1990 0x1089755f execute_all_ipa_transforms() ../../gcc/gcc/passes.c:2031 0x1052cc67 cgraph_node::expand() ../../gcc/gcc/cgraphunit.c:1735 0x1052e957 expand_all_functions ../../gcc/gcc/cgraphunit.c:1878 0x1052e957 symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2213 0x105309d3 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2290 0x10260d33 cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4666 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. trippels@gcc1-power7 status % g++ -fno-ipa-icf -c -w -std=c++11 -O2 form_attr.ii trippels@gcc1-power7 status %