https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120191
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yes. You need to write a ChangeLog entry, which would be in this case I think something like PR fortran/120191 * trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Call strip_kind_from_actual unconditionally. * gfortran.dg/pr120191.f90: New test. (though with tabs instead of 8 spaces).