[Bug c++/41480] std::map.erase on cygwin

2009-09-28 Thread lifelong830114 at gmail dot com
--- 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

[Bug c++/41480] std::map.erase on cygwin

2009-09-28 Thread lifelong830114 at gmail dot com
--- 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(

[Bug c++/41480] std::map.erase on cygwin

2009-09-27 Thread lifelong830114 at gmail dot com
--- 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

[Bug c++/41480] New: std::map.erase on cygwin

2009-09-27 Thread lifelong830114 at gmail dot com
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