https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84135
Bug ID: 84135 Summary: [8 Regression] ICE in gfc_trans_array_cobounds, at fortran/trans-array.c:6033 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed before 20170820. No ICE with version 6 or 7. In combination with -fcoarray=single or -fcoarray=lib. $ cat z1.f90 program p integer :: i integer, dimension(3) :: x[2,*] data (x(i:i+2:i+1), i=1,2) /1,2,3/ print *, x end $ gfortran-8-20180128 z1.f90 -c -fcoarray=single z1.f90:6:0: end internal compiler error: Segmentation fault 0xb94e5f crash_signal ../../gcc/toplev.c:325 0x755e8b gfc_trans_array_cobounds(tree_node*, stmtblock_t*, gfc_symbol const*) ../../gcc/fortran/trans-array.c:6033 0x76e50d gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*) ../../gcc/fortran/trans-decl.c:4527 0x770533 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6594 0x6ffde0 translate_all_program_units ../../gcc/fortran/parse.c:6121 0x6ffde0 gfc_parse_file() ../../gcc/fortran/parse.c:6324 0x7464ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204