--- Comment #6 from lifelong830114 at gmail dot com 2009-09-28 12:46
---
(In reply to comment #5)
> The code is invalid everywhere for the reason you mentioned, on linux just
> happens by chance to not segfault.
Ok, I see.
Thank you very much.
--
lifelong830114 at gmail d
--- Comment #4 from lifelong830114 at gmail dot com 2009-09-28 09:31
---
(In reply to comment #3)
> In any case, the code is invalid, try building (and then running) with
> -D_GLIBCXX_DEBUG to see the problem. This way, for example, is fine:
> for (; it != mymap.end(
--- Comment #2 from lifelong830114 at gmail dot com 2009-09-28 01:39
---
The error occured on cygwin not linux, and I referenced
http://gcc.gnu.org/gcc-4.2/buildstat.html
--
lifelong830114 at gmail dot com changed:
What|Removed |Added
Summary: std::map.erase on cygwin
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lifelong830114 at gmail dot c