https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93963
sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #2 from sandra at gcc dot gnu.org --- 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.