[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 --- Comment #6 from Jonathan Wakely 2010-11-11 17:13:20 UTC --- (In reply to comment #5) > > Maybe I'm misinterpreting the standard, but in 23.2.1, it states: > > "The insert members shall not affect the validity of iterators and references > t

[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 --- Comment #3 from Jonathan Wakely 2010-11-11 09:30:40 UTC --- (In reply to comment #1) > I forgot to mention one thing. The code that seems to acting suspisciously is > this bit: > > toDo.erase( *out ); //Putting this code here instead of th

[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-10 Thread Shadow7789 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 --- Comment #2 from Brad 2010-11-11 02:53:43 UTC --- Also, whoops, the remove code is broken. It doesn't increment it at the end of the while loop. This bug has no impact on the problem I was encountering. Sorry for the swarm of posts, it's re

[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-10 Thread Shadow7789 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 Brad changed: What|Removed |Added Severity|critical|major

[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-10 Thread Shadow7789 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 --- Comment #1 from Brad 2010-11-11 02:37:56 UTC --- I forgot to mention one thing. The code that seems to acting suspisciously is this bit: toDo.erase( *out ); //Putting this code here instead of the end breaks this code. std::map >::const_i

[Bug libstdc++/46424] Iterators being improperly invalidated

2010-11-10 Thread Shadow7789 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46424 Brad changed: What|Removed |Added Severity|major |critical