From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4433 invoked by alias); 12 Aug 2004 21:07:14 -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 4422 invoked by uid 48); 12 Aug 2004 21:07:14 -0000 Date: Thu, 12 Aug 2004 21:07:00 -0000 Message-ID: <20040812210714.4421.qmail@sourceware.org> From: "debrak at sgi dot com" 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/msg01180.txt.bz2 List-Id: ------- Additional Comments From debrak at sgi dot com 2004-08-12 21:07 ------- My compile does not work if I replace var.remove(*i0) with var.erase(i0): % gcc -g -Wall -o bug1.o -c bug1.cpp bug1.cpp: In function `int main()': bug1.cpp:22: error: no matching function for call to `std::list >::remove(std::_List_iterator&)' /usr/local/gcc-3.4.1/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/list.tcc:174: note: candidates are: void std::list<_Tp, _Alloc>::remove(const _Tp&) [with _Tp = int, _Alloc = std::allocator] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17012