This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- Comment #3 from paolo dot carlini at oracle dot com  2009-09-28 09:17 -------
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() ; /* it++ */)  {
   mymap.erase((*it++).first);
 }


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41480


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]