From b169bb00d1f6a18afe988e3fde6f8a91f1a0b87b Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 31 May 2016 01:50:55 +0000 Subject: [PATCH] Mark LWG issue 2276 as complete. Add _LIBCPP_ASSERTS for it git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271247 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/future | 2 ++ www/cxx1z_status.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/future b/include/future index 957a23cd8..3bbb92586 100644 --- a/include/future +++ b/include/future @@ -1514,6 +1514,7 @@ template void promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p) { + _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" ); if (__state_ == nullptr) __throw_future_error(future_errc::no_state); __state_->set_exception_at_thread_exit(__p); @@ -1649,6 +1650,7 @@ template void promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p) { + _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" ); if (__state_ == nullptr) __throw_future_error(future_errc::no_state); __state_->set_exception_at_thread_exit(__p); diff --git a/www/cxx1z_status.html b/www/cxx1z_status.html index 37b9833f5..d29b5c780 100644 --- a/www/cxx1z_status.html +++ b/www/cxx1z_status.html @@ -203,7 +203,7 @@ 2495There is no such thing as an Exception Safety elementKonaComplete 2192Validity and return type of std::abs(0u) is unclearJacksonville - 2276Missing requirement on std::promise::set_exceptionJacksonville + 2276Missing requirement on std::promise::set_exceptionJacksonvilleComplete 2296std::addressof should be constexprJacksonvilleComplete (Clang Only) 2450(greater|less|greater_equal|less_equal)<void> do not yield a total order for pointersJacksonville 2520N4089 broke initializing unique_ptr<T[]> from a nullptrJacksonville