From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24610 invoked by alias); 24 Jul 2007 16:40:49 -0000 Received: (qmail 24591 invoked by uid 48); 24 Jul 2007 16:40:39 -0000 Date: Tue, 24 Jul 2007 16:40:00 -0000 Message-ID: <20070724164039.24590.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/32883] Regression: reverse_iterator produces valgrind errors In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "Raimund dot Merkert at baesystems dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02478.txt.bz2 ------- Comment #1 from Raimund dot Merkert at baesystems dot com 2007-07-24 16:40 ------- If I replace *i with ++i, I get basically the same result. It has struck me as weird that this would be the "preferred way" according to Scott Myers, but looking at the implementation bits/stl_iterator.h, this code should definitely not work. So, perhaps it is not a bug after all? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32883