This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/17012] std::list's function, remove, looks like it is reading memory that has been freed.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]