Commit 88811a97 by Tim Shen Committed by Jonathan Wakely

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.

From-SVN: r243027
parent aec0ee11
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.
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment