https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65428
G. Steinmetz <gs...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gs...@t-online.de --- Comment #5 from G. Steinmetz <gs...@t-online.de> --- Updating backtrace, see below. The following example is comparable to that from comment 0, the value of "shape(1)" is a rank-one array of size zero. $ cat z1.f90 program p print *, [shape(1)] end $ gfortran-8-20171105 -c z1.f90 z1.f90:2:0: print *, [shape(1)] internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:1102 0x7a7123 gfc_typenode_for_spec(gfc_typespec*, int) ../../gcc/fortran/trans-types.c:1102 0x74473e trans_array_constructor ../../gcc/fortran/trans-array.c:2471 0x74473e gfc_add_loop_ss_code ../../gcc/fortran/trans-array.c:2814 0x7455c5 gfc_conv_loop_setup(gfc_loopinfo*, locus*) ../../gcc/fortran/trans-array.c:5093 0x7891cb gfc_trans_transfer(gfc_code*) ../../gcc/fortran/trans-io.c:2620 0x72fec7 trans_code ../../gcc/fortran/trans.c:2028 0x786b47 build_dt ../../gcc/fortran/trans-io.c:2028 0x72fee7 trans_code ../../gcc/fortran/trans.c:2000 0x756bfc gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6421 0x6e8b90 translate_all_program_units ../../gcc/fortran/parse.c:6091 0x6e8b90 gfc_parse_file() ../../gcc/fortran/parse.c:6294 0x72d3bf gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204