From 76515a2dcf907cf99c98362f306e1b9fa317023e 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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302724 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../func.wrap.func/func.wrap.func.targ/target.pass.cpp | 4 ++++ www/cxx1z_status.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp b/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp index 53476a274..7a4678ad1 100644 --- a/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.targ/target.pass.cpp +++ b/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/www/cxx1z_status.html b/www/cxx1z_status.html index 867a6c41f..a908197a8 100644 --- a/www/cxx1z_status.html +++ b/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