re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointe...
authorJonathan Wakely <jwakely@redhat.com>
Mon, 1 Dec 2014 13:49:20 +0000 (13:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 1 Dec 2014 13:49:20 +0000 (13:49 +0000)
commit7b55fa54d4f8040c8f01acd3c725670000640538
tree6d4a55ffd31c569daea99eed047d23e33962c50d
parent31a46aa7d4f7d810624d98547948833d7bba4756
re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails)

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.

From-SVN: r218215
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/include/tr1/functional
libstdc++-v3/testsuite/20_util/function/63840.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/3_function_objects/function/63840.cc [new file with mode: 0644]