https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91863
Bug ID: 91863 Summary: [9/10 Regression] ICE in wide_int_to_tree_1, at tree.c:156 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20190217 and 20190224 : $ cat z1.f90 program p interface subroutine sub(x) bind(c) integer, allocatable, intent(out) :: x(:) end end interface integer, allocatable :: a(:) call sub(a) end $ cat z2.f90 program p integer, allocatable :: a(:) call sub(a) contains subroutine sub(x) bind(c) integer, allocatable, intent(out) :: x(:) end end $ gfortran-9-20190217 -c z1.f90 $ $ gfortran-10-20190922 -c z1.f90 z1.f90:8:0: 8 | call sub(a) | internal compiler error: in wide_int_to_tree_1, at tree.c:1568 0xda9dc2 wide_int_to_tree_1 ../../gcc/tree.c:1568 0xdaa2eb wide_int_to_tree(tree_node*, poly_int<1u, generic_wide_int<wide_int_ref_storage<false, true> > > const&) ../../gcc/tree.c:1693 0xdaa2eb build_int_cst(tree_node*, poly_int<1u, long>) ../../gcc/tree.c:1362 0x6ceae1 gfc_deallocate_with_status(tree_node*, tree_node*, tree_node*, tree_node*, tree_node*, bool, gfc_expr*, int, tree_node*, tree_node*) ../../gcc/fortran/trans.c:1371 0x70561e gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec<tree_node*, va_gc, vl_embed>*) ../../gcc/fortran/trans-expr.c:6204 0x739a18 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool) ../../gcc/fortran/trans-stmt.c:406 0x6cc3c1 trans_code ../../gcc/fortran/trans.c:1920 0x6f4d94 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6781 0x67eb76 translate_all_program_units ../../gcc/fortran/parse.c:6254 0x67eb76 gfc_parse_file() ../../gcc/fortran/parse.c:6493 0x6c8a8f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204