https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120261
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- EDG rejects it for the same reason as GCC. Clang 17 rejected it too, but Clang 18 accepts it. I suspect this is a Core DR but I'm not sure which one.