From d75e451471d0fd8163203c9aa1451cd7f7e6ac28 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 10 May 2017 20:37:43 +0000 Subject: [PATCH] Implement LWG 2591 - Patch from K-Ballo llvm-svn: 302724 --- .../func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp | 4 ++++ libcxx/www/cxx1z_status.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp index 53476a2..7a4678a 100644 --- a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp @@ -63,6 +63,7 @@ int main() assert(A::count == 1); assert(f.target()); assert(f.target() == 0); + assert(f.target() == nullptr); } assert(A::count == 0); { @@ -70,6 +71,7 @@ int main() assert(A::count == 0); assert(f.target()); assert(f.target() == 0); + assert(f.target() == nullptr); } assert(A::count == 0); { @@ -77,6 +79,7 @@ int main() assert(A::count == 1); assert(f.target()); assert(f.target() == 0); + assert(f.target() == nullptr); } assert(A::count == 0); { @@ -84,6 +87,7 @@ int main() assert(A::count == 0); assert(f.target()); assert(f.target() == 0); + assert(f.target() == nullptr); } assert(A::count == 0); } diff --git a/libcxx/www/cxx1z_status.html b/libcxx/www/cxx1z_status.html index 867a6c4..a908197 100644 --- a/libcxx/www/cxx1z_status.html +++ b/libcxx/www/cxx1z_status.html @@ -387,7 +387,7 @@ 2584 ECMAScript IdentityEscape is ambiguousIssaquah 2588[fund.ts.v2] "Convertible to bool" requirement in conjunction and disjunctionIssaquah 2589match_results can't satisfy the requirements of a containerIssaquahComplete - 2591std::function's member template target() should not lead to undefined behaviourIssaquah + 2591std::function's member template target() should not lead to undefined behaviourIssaquahComplete 2598addressof works on temporariesIssaquahComplete 2664operator/ (and other append) semantics not useful if argument has rootIssaquahComplete 2665remove_filename() post condition is incorrectIssaquahComplete -- 2.7.4