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

--- Comment #1 from G. Steinmetz <gs...@t-online.de> ---

Configured with --enable-checking=yes :


$ gfortran-9-20181021-chk -c z1.f90 -O2
during IPA pass: inline
f951:

internal compiler error: tree check: expected ssa_name, have addr_expr in
remap_gimple_op_r, at tree-inline.c:923
0x5e3e24 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9369
0xd0409e tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3118
0xd0409e remap_gimple_op_r
        ../../gcc/tree-inline.c:923
0xf5c593 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hash_traits<tree_node*> >*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:11513
0x9c6b6c walk_gimple_op(gimple*, tree_node* (*)(tree_node**, int*, void*),
walk_stmt_info*)
        ../../gcc/gimple-walk.c:268
0xcfd1b1 remap_gimple_stmt
        ../../gcc/tree-inline.c:1777
0xcfe4c4 copy_bb
        ../../gcc/tree-inline.c:1827
0xd0019c copy_cfg_body
        ../../gcc/tree-inline.c:2719
0xd0019c copy_body
        ../../gcc/tree-inline.c:2961
0xd05c82 expand_call_inline
        ../../gcc/tree-inline.c:4691
0xd08a64 gimple_expand_calls_inline
        ../../gcc/tree-inline.c:4886
0xd08a64 optimize_inline_calls(tree_node*)
        ../../gcc/tree-inline.c:5026
0x153c0eb inline_transform(cgraph_node*)
        ../../gcc/ipa-inline-transform.c:682
0xb92786 execute_one_ipa_transform_pass
        ../../gcc/passes.c:2170
0xb92786 execute_all_ipa_transforms()
        ../../gcc/passes.c:2212
0x8278af cgraph_node::expand()
        ../../gcc/cgraphunit.c:2187
0x828e20 expand_all_functions
        ../../gcc/cgraphunit.c:2332
0x828e20 symbol_table::compile()
        ../../gcc/cgraphunit.c:2683
0x82b9c6 symbol_table::compile()
        ../../gcc/cgraphunit.c:2864
0x82b9c6 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2861

Reply via email to