You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Reproducer
```fortran
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)
Reproducer
```fortran
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)
Reproducer
Original test: https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/torture/execute/iolength_1.f90
The text was updated successfully, but these errors were encountered: