https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93672
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- I proposed https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3223r1.html to fix this surprising behaviour, but it hasn't made it through the committee yet.