summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-30 14:46:15 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-11-30 14:46:15 +0000
commit5f3234cfaee0d298e2f0eb70da1230cbf27fec41 (patch)
tree10b2c0cab9b3636e500bc74c10f9b40a65452575 /libstdc++-v3
parent922a7856a1d40a99275a0b112ad95e2c4955d7bc (diff)
downloadgcc-5f3234cfaee0d298e2f0eb70da1230cbf27fec41.tar.gz
Fix condition in shared_ptr assertion
2016-11-30 Tim Shen <timshen@google.com> * include/bits/shared_ptr_base.h (__shared_ptr_access<T, L, true, false>::operator*()): Fix assertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/shared_ptr_base.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 3498e329238..349a35b2350 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-30 Tim Shen <timshen@google.com>
+
+ * include/bits/shared_ptr_base.h
+ (__shared_ptr_access<T, L, true, false>::operator*()): Fix assertion.
+
2016-11-30 David Edelsohn <dje.gcc@gmail.com>
* testsuite/18_support/50594.cc: XFAIL on AIX.
diff --git a/libstdc++-v3/include/bits/shared_ptr_base.h b/libstdc++-v3/include/bits/shared_ptr_base.h
index 953aa87436e..2fb70b7a5cb 100644
--- a/libstdc++-v3/include/bits/shared_ptr_base.h
+++ b/libstdc++-v3/include/bits/shared_ptr_base.h
@@ -1000,7 +1000,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
element_type&
operator*() const noexcept
{
- __glibcxx_assert(_M_ptr != nullptr);
+ __glibcxx_assert(_M_get() != nullptr);
return *_M_get();
}