https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87520
--- Comment #3 from Axel Naumann <g...@axel-naumann.de> --- (In reply to Jonathan Wakely from comment #1) > A possible (partial) fix would be: > > --- a/libstdc++-v3/include/bits/shared_ptr_base.h > +++ b/libstdc++-v3/include/bits/shared_ptr_base.h I can confirm that this also fixes our actual "in the wild" issue. I would certainly appreciate this being included in 8.3. Thank you for the reproducer and the suggested patch, Jonathan!