[Bug libstdc++/63840] std::function copy constructor deletes an uninitialized pointer if new fails
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 6 20:38:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63840
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Dec 6 20:37:54 2014
New Revision: 218452
URL: https://gcc.gnu.org/viewcvs?rev=218452&root=gcc&view=rev
Log:
PR libstdc++/63840
* include/std/functional (function::function(const function&)): Set
_M_manager after operations that might throw.
* include/tr1/functional (function::function(const function&),
function::function(_Functor, _Useless)): Likewise.
* testsuite/20_util/function/63840.cc: New.
* testsuite/tr1/3_function_objects/function/63840.cc: New.
Added:
branches/gcc-4_8-branch/libstdc++-v3/testsuite/20_util/function/63840.cc
branches/gcc-4_8-branch/libstdc++-v3/testsuite/tr1/3_function_objects/function/63840.cc
Modified:
branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
branches/gcc-4_8-branch/libstdc++-v3/include/std/functional
branches/gcc-4_8-branch/libstdc++-v3/include/tr1/functional
More information about the Gcc-bugs
mailing list