https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99010
Bug ID: 99010 Summary: [11 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2322 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- This changed recently, between 20210131 and 20210207 : $ cat z1.f90 program p integer :: x[*] x = this_image() if ( this_image() == 2 ) then x = x[1] end if end $ gfortran-11-20210131 -c z1.f90 -fcoarray=lib $ $ gfortran-11-20210207 -c z1.f90 -fcoarray=lib z1.f90:5:14: 5 | x = x[1] | 1 internal compiler error: in gfc_dep_resolver, at fortran/dependency.c:2322 0x72b427 gfc_dep_resolver(gfc_ref*, gfc_ref*, gfc_reverse*, bool) ../../gcc/fortran/dependency.c:2322 0x783aa8 conv_caf_send ../../gcc/fortran/trans-intrinsic.c:1952 0x78b3d5 gfc_conv_intrinsic_subroutine(gfc_code*) ../../gcc/fortran/trans-intrinsic.c:12442 0x739be2 trans_code ../../gcc/fortran/trans.c:1981 0x7a58d5 gfc_trans_if_1 ../../gcc/fortran/trans-stmt.c:1475 0x7ad46a gfc_trans_if(gfc_code*) ../../gcc/fortran/trans-stmt.c:1507 0x739c87 trans_code ../../gcc/fortran/trans.c:2010 0x7602d4 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6880 0x6e6c26 translate_all_program_units ../../gcc/fortran/parse.c:6351 0x6e6c26 gfc_parse_file() ../../gcc/fortran/parse.c:6620 0x732e7f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212