------- Comment #5 from grzes at nec-labs dot com 2006-10-18 14:40 ------- I encountered this bug (?) in the past. I thought, maybe incorrectly, that accessing an interator (e.g copying it) equals read access to a container, hence no thread safety guarnatees for concurrent modifications to the container - like erase on another element.
OTOH, this works fine in non-debug mode. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29496