diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2012-11-14 23:33:01 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2012-11-14 23:33:01 +0000 |
commit | 99ace34a31c9d1220d10ac6f6089038976732df1 (patch) | |
tree | 61c548f3b9eeb6c0a2b15a23e063290fb69cd049 /gcc/combine-stack-adj.c | |
parent | 3aac5aad16e7e77dcd3885089c6b2566df29feb9 (diff) | |
download | gcc-99ace34a31c9d1220d10ac6f6089038976732df1.zip gcc-99ace34a31c9d1220d10ac6f6089038976732df1.tar.gz gcc-99ace34a31c9d1220d10ac6f6089038976732df1.tar.bz2 |
re PR libstdc++/55320 (Invalid delete with throwing copy-c'tor passed to std::function)
PR libstdc++/55320
* include/std/functional (function::function(F)): Set _M_manager after
operations that could throw.
(_Function_base::_Ref_manager::_M_init_functor): Use addressof.
* include/tr1/functional
(_Function_base::_Ref_manager::_M_init_functor): Use addressof.
(_Function_base::_Base_manager::_M_get_pointer): Likewise.
* testsuite/20_util/function/cons/55320.cc: New.
* testsuite/20_util/function/cons/addressof.cc: New.
* testsuite/20_util/function/cons/callable.cc: Remove header.
* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
* testsuite/tr1/3_function_objects/function/10.cc: New.
From-SVN: r193514
Diffstat (limited to 'gcc/combine-stack-adj.c')
0 files changed, 0 insertions, 0 deletions