https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108288
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- __gnu_debug::_Safe_iterator_base::_M_detach in debug.cc isn't affected by the patch though. The fix is to the post-inc and post-dec members, so only the code that calls those needs to be recompiled.