https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110288
--- Comment #7 from anlauf at gcc dot gnu.org --- The fix for FINDLOC also fixes the same regression for MINLOC, MAXLOC. There is another issue for MINVAL and MAXVAL that exists already in 10-branch, thus not a regression. I get at runtime: a.out: ../../../gcc-10/libgfortran/generated/maxval0_s1.c:68: maxval0_s1: Assertion `xlen == len' failed. Thus should be tracked separately.