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

mec at google dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 21 22:04:00 GMT 2006



------- Comment #11 from mec at google dot com  2006-01-21 22:04 -------
You can make this visible at the C++ program level with a Key class that has a
signature field.  Init the signature in the constructor, clear the signature in
the destructor, and check the signature in operator==.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17012



More information about the Gcc-bugs mailing list