https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92898
Bug ID: 92898
Summary: [9/10 Regression] ICE in gfc_check_is_contiguous, at
fortran/check.c:7157
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
This changed between 20190922 and 20190929.
$ cat z1.f90
program p
print *, is_contiguous(null())
end
$ gfortran-10-20190922 -c z1.f90
z1.f90:2:26:
2 | print *, is_contiguous(null())
| 1
Error: 'array' argument of 'is_contiguous' intrinsic at (1) must be an array
$ gfortran-10-20191208 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb800af crash_signal
../../gcc/toplev.c:328
0x608ac9 gfc_check_is_contiguous(gfc_expr*)
../../gcc/fortran/check.c:7157
0x64033c do_check
../../gcc/fortran/intrinsic.c:4698
0x64033c check_specific
../../gcc/fortran/intrinsic.c:4711
0x64a5e4 gfc_intrinsic_func_interface(gfc_expr*, int)
../../gcc/fortran/intrinsic.c:4948
0x6a162b resolve_unknown_f
../../gcc/fortran/resolve.c:2894
0x6a162b resolve_function
../../gcc/fortran/resolve.c:3231
0x6a162b gfc_resolve_expr(gfc_expr*)
../../gcc/fortran/resolve.c:6999
0x698b2c gfc_resolve_expr(gfc_expr*)
../../gcc/fortran/resolve.c:6966
0x698b2c gfc_resolve_code(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:11670
0x6a793f gfc_resolve_blocks(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:10697
0x697858 gfc_resolve_code(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:11660
0x69a0d7 resolve_codes
../../gcc/fortran/resolve.c:17186
0x69a19e gfc_resolve(gfc_namespace*)
../../gcc/fortran/resolve.c:17221
0x68859c resolve_all_program_units
../../gcc/fortran/parse.c:6241
0x68859c gfc_parse_file()
../../gcc/fortran/parse.c:6488
0x6d306f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210