[Bug libfortran/116886] maxval/minval should not return empty result for empty array

2024-09-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116886 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libfortran/116886] maxval/minval should not return empty result for empty array

2024-09-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116886 --- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Thomas Koenig from comment #2) > The behavior for simplification is correct, as far as I understand: > > $ cat mv2.f90 > program memain > integer, dimension(0,0), parameter :: empt

[Bug libfortran/116886] maxval/minval should not return empty result for empty array

2024-09-29 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116886 --- Comment #3 from Mikael Morin --- (In reply to Thomas Koenig from comment #0) > If I read J3/23-007 16.9.138 correctly, the following program should > print the minimum integer value, twice, but it prints nothing: > > program memain > impl

[Bug libfortran/116886] maxval/minval should not return empty result for empty array

2024-09-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116886 --- Comment #2 from Thomas Koenig --- 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 *,

[Bug libfortran/116886] maxval/minval should not return empty result for empty array

2024-09-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116886 Thomas Koenig changed: What|Removed |Added Keywords||wrong-code CC|