Open kkwli opened 2 days ago
@llvm/issue-subscribers-flang-runtime
Author: Kelvin Li (kkwli)
@llvm/issue-subscribers-bug
Author: Kelvin Li (kkwli)
There is another variation that could be caused by the same issue.
program main
real, allocatable :: a1(:)
allocate( a1(2:1) )
a1 = real(4, 8)
end
fatal Fortran runtime error(/home/cdchen/temp/b.f:4): Assign: mismatched ranks (1 != 0) in assignment to unallocated allocatable
IOT/Abort trap(coredump)
Reproducer
Original test: https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/torture/execute/iolength_1.f90