https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97272
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2020-10-02 Keywords| |wrong-code CC| |anlauf at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed for the case where the kind argument is present: i = maxloc (a, dim=1, kind=8) or i = maxloc (a, dim=1, kind=4) The issue does not occur when the kind argument is not present: i = maxloc (a, dim=1)