[Bug fortran/97272] Wrong answer from MAXLOC with character arg

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 2 19:44:59 GMT 2020


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)


More information about the Gcc-bugs mailing list