[PATCH] PR 70564 disambiguate constructors for not_fn call wrapper
Jonathan Wakely
jwakely@redhat.com
Wed Oct 5 12:40:00 GMT 2016
On 05/10/16 12:31 +0100, Jonathan Wakely wrote:
>diff --git a/libstdc++-v3/testsuite/20_util/not_fn/1.cc b/libstdc++-v3/testsuite/20_util/not_fn/1.cc
>index 375c7cc..8d6e9ec 100644
>--- a/libstdc++-v3/testsuite/20_util/not_fn/1.cc
>+++ b/libstdc++-v3/testsuite/20_util/not_fn/1.cc
>@@ -84,6 +84,12 @@ test04()
> VERIFY( not_fn(f)(d) );
> }
>
>+void
>+test05()
>+{
>+ auto nf{ std::not_fn([] { return false; }) };
>+}
>+
> int
> main()
> {
>diff --git a/libstdc++-v3/testsuite/experimental/functional/not_fn.cc b/libstdc++-v3/testsuite/experimental/functional/not_fn.cc
>index d508028..59d7621 100644
>--- a/libstdc++-v3/testsuite/experimental/functional/not_fn.cc
>+++ b/libstdc++-v3/testsuite/experimental/functional/not_fn.cc
>@@ -84,6 +84,12 @@ test04()
> VERIFY( not_fn(f)(d) );
> }
>
>+void
>+test05()
>+{
>+ auto nf{ not_fn([] { return false; }) };
>+}
>+
> int
> main()
> {
Gah, this aren't the tests I meant to commit. Fixed on trunk like so,
with tests that actually failed before the fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1224 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20161005/a0a04ef9/attachment.bin>
More information about the Libstdc++
mailing list