https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118854
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > Apple Clang 16 (which uses some variation/fork of libstdc++ but is failing in > the exact same way with a slightly different stack within the shared_ptr copy > constructor). Libc++ is NOT a variation or fork of libstc++ but it's own implementation and unrelated to libstdc++. If you hit there too, 99% chances were it is a bug in your code.