From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13880 invoked by alias); 12 Aug 2004 21:20:12 -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 13868 invoked by uid 48); 12 Aug 2004 21:20:11 -0000 Date: Thu, 12 Aug 2004 21:20:00 -0000 Message-ID: <20040812212011.13867.qmail@sourceware.org> From: "pcarlini at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040812195652.17012.debrak@sgi.com> References: <20040812195652.17012.debrak@sgi.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/17012] std::list's function, remove, looks like it is reading memory that has been freed. X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01182.txt.bz2 List-Id: ------- Additional Comments From pcarlini at suse dot de 2004-08-12 21:20 ------- Hey, in your compile you didn't change remove(*i0) to erase(i0), but instead, wrongly, remove(i0)! Anyway, this info is trivially true: the problem appear at line 181 of list.tcc, which is 'if (*__first == __value)'... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17012