Is using explicit array slice ranges considered bad for Fortran?

I would also add that it can lead to problems whenever explicit bounds are used, as out-of-bound access is UB (as discussed here).

For example:

integer :: istack(0:2)
integer, allocatable :: iall(:)

allocate(iall(-1:1))
1 Like