https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117615
--- Comment #1 from Alec <acox at reliablecontrols dot com> --- It is worth noting that the same code compiles under clang-18 (haven't tested other versions), although that doesn't mean they're doing the right thing.