This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17012] std::list's function, remove, looks like it is reading memory that has been freed.
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2004 21:20:11 -0000
- Subject: [Bug libstdc++/17012] std::list's function, remove, looks like it is reading memory that has been freed.
- References: <20040812195652.17012.debrak@sgi.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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