[Bug libstdc++/51365] cannot use final empty class in std::tuple

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 28 11:40:00 GMT 2013


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.1                       |4.9.0

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-28 11:40:24 UTC ---
shared_ptr fixed to handle final allocators by:

Author: redi
Date: Sun Apr 28 11:38:21 2013
New Revision: 198367

URL: http://gcc.gnu.org/viewcvs?rev=198367&root=gcc&view=rev
Log:
    PR libstdc++/51365
    * include/bits/shared_ptr_base (_Sp_ebo_helper): Helper class to
    implement EBO safely.
    (_Sp_counted_base::_M_get_deleter): Add noexcept.
    (_Sp_counter_ptr): Use noexcept instead of comments.
    (_Sp_counted_deleter): Likewise. Use _Sp_ebo_helper.
    (_Sp_counted_ptr_inplace): Likewise.
    * testsuite/20_util/shared_ptr/cons/51365.cc: New.
    * testsuite/20_util/shared_ptr/cons/52924.cc: Add rebind member to
    custom allocator and test construction with custom allocator.
    * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
    line number.

Added:
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/51365.cc
      - copied, changed from r198365,
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/52924.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/cons/52924.cc



More information about the Gcc-bugs mailing list