https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62313

--- Comment #4 from François Dumont <fdumont at gcc dot gnu.org> ---
For me there is no bug. Standard containers are known to not be thread safe. I
don't know what  Standard points are talking about it but what I consider as
valid was iterating through the container from different threads. However in
your case you are doing some iterator operations, no matter how simple they
are,  in one thread while modifying the container from another and this require
you to put some mutex in place to do so.

I think you will experiment the same issue with all versions of the Standard
lib, even the oldest ones. Synchronization of the list of iterators has never
been plan to cover this kind of usage which is considered as invalid.

Reply via email to