https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100607
--- Comment #8 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Thu, Jun 01, 2023 at 07:26:43PM +0000, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100607 > > --- Comment #7 from anlauf at gcc dot gnu.org --- > (In reply to kargl from comment #6) > > Created attachment 55191 [details] > > patch that fixes bug > > > > The patch, which was previously submitted, still applies and fixes the bug. > > Sure. > > Do you have an answer to your own remarks in comment#5? > I've concluded that the bug was reported 2 years agos. It was fixed by a tentative patch 2 years laters. 'case_value == -1' is for 'rank(*)'. 'case_value == -2' appears to be for non-'rank(*)' cases, and those are handled in the preceding nested for-loop.