https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96946
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > Libc++ seems to pass the std::list example in comment 3 because they rely on > different UB: https://godbolt.org/z/xvdaxh That seems to be fixed in libc++ 18.1.0