https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91424

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
A third problem: Zero-trip do loops are warned about.

program main
  implicit none
  integer :: i
  real :: a(2)
  do i=1,3,-1
     a(i) = 2.
  end do
  print *,a
end program main

gets

do_subscript_4.f90:6:7:

    5 |   do i=1,3,-1
      |             2
    6 |      a(i) = 2.
      |       1
Warning: Array reference at (1) out of bounds (3 > 2) in loop beginning at (2)

Reply via email to