https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122334
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is not a libstdc++ bug, and probably a dup of PR 122197 I'm not going to analyze it until that bug is fixed, because I'm pretty confident that std::shared_ptr is correct.
