https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62313
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- It might be possible to solve using the base-from-member idiom so that _M_current is set before the iterator is added to the collection.