This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38916] auto_ptr_ref conversion incorrectly releases ownership
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2009 22:35:37 -0000
- Subject: [Bug libstdc++/38916] auto_ptr_ref conversion incorrectly releases ownership
- References: <bug-38916-4503@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from paolo dot carlini at oracle dot com 2009-01-19 22:35 -------
Note that auto_ptr is deprecated for the next Standard, replaced by unique_ptr
(which we deliver in C++0x mode). In fact the specifications of auto_ptr are
known to be irreparably broken. That means we must be *extremely* careful
here, if we touch the code we can destabilize an already brittle behavior.
Do we have evidence that other widespread implementations actually behave
differently than libstdc++-v3 here?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38916