https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63840
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Sat Dec 6 22:24:11 2014 New Revision: 218456 URL: https://gcc.gnu.org/viewcvs?rev=218456&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::functionFunctor, _Useless)): Likewise. * testsuite/20_util/function/63840.cc: New. * testsuite/tr1/3_function_objects/function/63840.cc: New. Added: branches/gcc-4_9-branch/libstdc++-v3/testsuite/20_util/function/63840.cc branches/gcc-4_9-branch/libstdc++-v3/testsuite/tr1/3_function_objects/function/63840.cc Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/std/functional branches/gcc-4_9-branch/libstdc++-v3/include/tr1/functional