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