http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55320



--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-15 
00:21:16 UTC ---

Author: redi

Date: Thu Nov 15 00:21:09 2012

New Revision: 193520



URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193520

Log:

    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/bind/ref_neg.cc: Adjust dg-error line numbers.

    * testsuite/tr1/3_function_objects/function/10.cc: New.



Added:

   

branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/function/cons/55320.cc

   

branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/function/cons/addressof.cc

   

branches/gcc-4_7-branch/libstdc++-v3/testsuite/tr1/3_function_objects/function/10.cc

Modified:

    branches/gcc-4_7-branch/libstdc++-v3/ChangeLog

    branches/gcc-4_7-branch/libstdc++-v3/include/std/functional

    branches/gcc-4_7-branch/libstdc++-v3/include/tr1/functional

    branches/gcc-4_7-branch/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc

Reply via email to