[Bug libstdc++/23633] map::insert() invalidates reverse_iterators

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Wed Aug 31 10:13:00 GMT 2005


------- Additional Comments From pcarlini at suse dot de  2005-08-31 10:06 -------
Agreed, not a bug. Thanks

PS: notice that according to 23.1.2/8, no iterators are invalidated due to the
insertion, and im2 is perfectly ok to use, just gets "updated" to the new
M.rbegin() ;) Last remark: being libstdc++-v3 free software, submitter is
encouraged to have a look to class reverse_iterator in stl_iterator.h, in
particular its comments and the (conforming, 24.4.1.3.3) implementation of
operator*!


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


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



More information about the Gcc-bugs mailing list