https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- As noted in PR 19779, using -ffast-math or -funsafe-math-optimizations allows your examples to compile.
redi at gcc dot gnu.org via Gcc-bugs Mon, 28 Oct 2024 10:09:43 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117331
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- As noted in PR 19779, using -ffast-math or -funsafe-math-optimizations allows your examples to compile.