Open
Description
Reproducer
integer, allocatable :: a(:)
allocate(a(0))
inquire(iolength=iol) a
end
$ flang-new zero.f90
$ ./a.out
fatal Fortran runtime error(/home/kli/zero.f90:3): Bad address for I/O item -- null base address or subscripts out of range
IOT/Abort trap (core dumped)
Original test: https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/torture/execute/iolength_1.f90