https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93963
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to sandra from comment #2) > Fiddling with the test case a bit, I observe that the RANK() intrinsic > returns the correct result even in the functions where SELECT RANK fails. > Seems odd that SELECT RANK uses different logic. Why? The code for SELECT RANK was added in 2019 and code for RANK() was added sometime around 2011. It seems the individuals, who committed each feature, are different people. At least, one of the two took a very long hiatus from working on gfortran, and the other seems not to be omniscient.