https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121496
--- Comment #1 from Ted Lyngmo <ted at lyncon dot se> --- I now think clang++-18.1 (where the code compiles) was shipped with libstdc++ 13.2.0 which supports my idea that there was a regression in libstdc++ 14.