From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26127 invoked by alias); 31 Aug 2005 10:06:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26100 invoked by uid 48); 31 Aug 2005 10:06:32 -0000 Date: Wed, 31 Aug 2005 10:13:00 -0000 Message-ID: <20050831100632.26099.qmail@sourceware.org> From: "pcarlini at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050830125045.23633.relf@os2.ru> References: <20050830125045.23633.relf@os2.ru> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/23633] map::insert() invalidates reverse_iterators X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03554.txt.bz2 List-Id: ------- 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