aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2014-01-28 10:23:27 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2014-01-28 10:23:27 +0000
commit156b60e0b9980ecbfbcdb187ab44937b731dcecb (patch)
tree2784f59b8c4a0e29330cec40f45e3c91d147a2c8 /gcc
parent9ec2d2c16816c8fc9fe719f523bebf98456e409c (diff)
downloadgcc-156b60e0b9980ecbfbcdb187ab44937b731dcecb.zip
gcc-156b60e0b9980ecbfbcdb187ab44937b731dcecb.tar.gz
gcc-156b60e0b9980ecbfbcdb187ab44937b731dcecb.tar.bz2
re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag)
2014-01-28 Jonathan Wakely <jwakely@redhat.com> Kyle Lippincott <spectral@google.com> PR libstdc++/59656 * include/bits/shared_ptr.h (shared_ptr): Add new non-throwing constructor and grant friendship to weak_ptr. (weak_ptr::lock()): Use new constructor. * include/bits/shared_ptr_base.h (_Sp_counted_base::_M_add_ref_lock_nothrow()): Declare new function and define specializations. (__shared_count): Add new non-throwing constructor. (__shared_ptr): Add new non-throwing constructor and grant friendship to __weak_ptr. (__weak_ptr::lock()): Use new constructor. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error. * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise. Co-Authored-By: Kyle Lippincott <spectral@google.com> From-SVN: r207180
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions