shared_ptr_base.h (__shared_count(unique_ptr&&)): Check for nullptr (LWG 2415).
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 May 2015 16:42:18 +0000 (17:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 May 2015 16:42:18 +0000 (17:42 +0100)
commit098aac94ef8927e4bd24fc59919e9163057688fa
treecebeabdc23452f12716aa0864ea56906dcc360f7
parentb7dce216c7aabe73aae567e6565f44676246a518
shared_ptr_base.h (__shared_count(unique_ptr&&)): Check for nullptr (LWG 2415).

* include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
for nullptr (LWG 2415).
* testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
construction from empty unique_ptr.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

From-SVN: r223170
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/void_neg.cc