https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95374
Bug ID: 95374 Summary: ICE: gfc_array_size failed 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: --- Affects versions down to at least r5, z2.f90 works : $ cat z1.f90 program p integer :: i integer, parameter :: a(0) = 0 integer, parameter :: b(*) = [(a(i:i), i=0,0)] end $ cat z2.f90 program p integer :: i integer, parameter :: a(0) = 0 integer, parameter :: b(0) = [(a(i:i), i=0,0)] end $ gfortran-11-20200524 -c z1.f90 f951: internal compiler error: gfc_array_size failed 0x6519b9 gfc_report_diagnostic ../../gcc/fortran/error.c:782 0x6530da gfc_internal_error(char const*, ...) ../../gcc/fortran/error.c:1402 0x63b57d add_init_expr_to_sym ../../gcc/fortran/decl.c:2039 0x64503a variable_decl ../../gcc/fortran/decl.c:2990 0x64503a gfc_match_data_decl() ../../gcc/fortran/decl.c:6190 0x6a83d3 match_word ../../gcc/fortran/parse.c:65 0x6a83d3 decode_statement ../../gcc/fortran/parse.c:376 0x6a9e1a next_free ../../gcc/fortran/parse.c:1279 0x6a9e1a next_statement ../../gcc/fortran/parse.c:1511 0x6ab46b parse_spec ../../gcc/fortran/parse.c:3922 0x6ae23c parse_progunit ../../gcc/fortran/parse.c:5851 0x6af919 gfc_parse_file() ../../gcc/fortran/parse.c:6392 0x6fb9af gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210