https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92961
G. Steinmetz <gs...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code --- Comment #1 from G. Steinmetz <gs...@t-online.de> --- And when involving such an array, e.g. $ cat z2.f90 subroutine s integer :: a(0/(0)) integer :: b = ubound(a,1) end $ gfortran-10-20191215 -c z2.f90 f951: internal compiler error: Segmentation fault 0xb8147f crash_signal ../../gcc/toplev.c:328 0x62e560 gfc_numeric_ts(gfc_typespec*) ../../gcc/fortran/expr.c:891 0x6a24f0 resolve_operator ../../gcc/fortran/resolve.c:4022 0x69f967 gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:6992 0x5fa584 resolve_array_bound ../../gcc/fortran/array.c:377 0x5fb1b6 gfc_resolve_array_spec(gfc_array_spec*, int) ../../gcc/fortran/array.c:421 0x6b0856 simplify_bound_dim ../../gcc/fortran/simplify.c:4014 0x6b0c57 simplify_bound ../../gcc/fortran/simplify.c:4232 0x640357 do_simplify ../../gcc/fortran/intrinsic.c:4583 0x64aa78 gfc_intrinsic_func_interface(gfc_expr*, int) ../../gcc/fortran/intrinsic.c:4848 0x630097 gfc_check_init_expr(gfc_expr*) ../../gcc/fortran/expr.c:2873 0x6305b7 gfc_reduce_init_expr(gfc_expr*) ../../gcc/fortran/expr.c:3053 0x633790 gfc_match_init_expr(gfc_expr**) ../../gcc/fortran/expr.c:3099 0x61f6e3 variable_decl ../../gcc/fortran/decl.c:2832 0x61f6e3 gfc_match_data_decl() ../../gcc/fortran/decl.c:6098 0x6815a3 match_word ../../gcc/fortran/parse.c:65 0x6815a3 decode_statement ../../gcc/fortran/parse.c:376 0x682fea next_free ../../gcc/fortran/parse.c:1279 0x682fea next_statement ../../gcc/fortran/parse.c:1511 0x68463b parse_spec ../../gcc/fortran/parse.c:3922