[Bug libstdc++/77268] Vector erase call destructor for last element twice and doesn't call destructor for eased element.
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 16 15:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77268
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Your test is completely broken, you need to define copy assignment operator to
prevent two objects referring to the same pointer (and deleting it twice).
More information about the Gcc-bugs
mailing list