Fortran: do not frontend-optimize MINLOC/MAXLOC for character arrays
authorHarald Anlauf <anlauf@gmx.de>
Tue, 8 Mar 2022 20:47:04 +0000 (21:47 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 8 Mar 2022 20:47:04 +0000 (21:47 +0100)
commite3e369dad6cbecb1b490b3f3b154c600fba5a6f3
tree4c2f803971261a6c9e3aeb6c6fd50b0307da0ff7
parente480c3c06d20874fd7504bfdcca0b829f8000389
Fortran: do not frontend-optimize MINLOC/MAXLOC for character arrays

gcc/fortran/ChangeLog:

PR fortran/104811
* frontend-passes.cc (optimize_minmaxloc): Do not attempt
frontend-optimization of MINLOC/MAXLOC for character arrays, as
there is no suitable code yet for inline expansion.

gcc/testsuite/ChangeLog:

PR fortran/104811
* gfortran.dg/minmaxloc_16.f90: New test.
gcc/fortran/frontend-passes.cc
gcc/testsuite/gfortran.dg/minmaxloc_16.f90 [new file with mode: 0644]