The following program fails: ---------------------- subroutine io_bug() integer :: a(10) print *, lbound(a) end subroutine io_bug ---------------------- Command: gfortran -c gfortran-bug.f90 Error msg: gfortran-bug.f90: In function `io_bug': gfortran-bug.f90:3: fatal error: gfc_todo: Not Implemented: Unable to determine rank of expression compilation terminated. Version: GNU Fortran 95 (GCC 3.5.0 20040714 (experimental)) Platform: Mac OS X
Confirmed.
The problem is that we don't record the rank of the lbound for some reason, looking into it little more.
Fixed on trunk and 4.1 Paul