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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
The behavior for simplification is correct, as far as I understand:

$ cat mv2.f90
program memain
  integer, dimension(0,0), parameter :: empty = reshape([(0,i=1,0)],[0,0])
  print *,maxval(empty)
  print *,minval(empty)
end program memain
$ gfortran mv2.f90 && ./a.out
 -2147483648
  2147483647

Reply via email to