This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix libstdc++/55320


        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.

Tested x86-64_linux, committed to trunk, 4.7 to follow.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]