https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116926
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Victor Do Nascimento from comment #3) > Potential fix: > > https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665021.html Oh I see now, the original potential fix was exactly the same as my suggestion in comment #6 and the request for a change by Richard had missed that FOR_EACH_MODE's limit meant from_mode was not being checked. Will update my commit log with this information too. Anyways the fix in comment #7 is the simplified fix.