* [PATCH] Replace C++14 feature used in C++11 test
@ 2019-10-23 16:18 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2019-10-23 16:18 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 119 bytes --]
* testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.
Tested powerpvc64le-linux, committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 991 bytes --]
commit d51d04301d30e199c53a705777d263b3f596e86f
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Oct 23 16:49:55 2019 +0100
Replace C++14 feature used in C++11 test
* testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.
diff --git a/libstdc++-v3/testsuite/20_util/bind/91371.cc b/libstdc++-v3/testsuite/20_util/bind/91371.cc
index 1c6f55e9ece..ad032ce1663 100644
--- a/libstdc++-v3/testsuite/20_util/bind/91371.cc
+++ b/libstdc++-v3/testsuite/20_util/bind/91371.cc
@@ -32,6 +32,6 @@ test01()
static_assert(std::is_function<decltype(bar)>::value, "");
static_assert(std::is_function<decltype(baz)>::value, "");
- static_assert(std::is_pointer<std::decay_t<decltype(bar)>>::value, "");
- static_assert(std::is_pointer<std::decay_t<decltype(baz)>>::value, "");
+ static_assert(std::is_pointer<std::decay<decltype(bar)>::type>::value, "");
+ static_assert(std::is_pointer<std::decay<decltype(baz)>::type>::value, "");
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-23 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 16:18 [PATCH] Replace C++14 feature used in C++11 test Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).