https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45689
--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 42976 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42976&action=edit Patch which works for minloc(...,dim=1) for rank-one arrays This is a proof-of-concept patch for minloc which works for one of the three cases that need to be looked at, i.e. minloc(rank_one_array,dim=1) Still missing are minloc(arbitray_array) and minloc(arbitrary_array,dim=xx)