From: Jonathan Wakely Date: Wed, 23 Oct 2019 16:14:54 +0000 (+0100) Subject: Replace C++14 feature used in C++11 test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=161c3bf9ee52b6d9ef1ca2529f823c9bb5a6e690;p=gcc.git Replace C++14 feature used in C++11 test * testsuite/20_util/bind/91371.cc: Fix test to compile as C++11. From-SVN: r277339 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 277fd01eccf..d5df88b8e43 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2019-10-23 Jonathan Wakely + * testsuite/20_util/bind/91371.cc: Fix test to compile as C++11. + * include/debug/helper_functions.h (__valid_range): Change _GLIBCXX_CONSTEXPR to _GLIBCXX14_CONSTEXPR. 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::value, ""); static_assert(std::is_function::value, ""); - static_assert(std::is_pointer>::value, ""); - static_assert(std::is_pointer>::value, ""); + static_assert(std::is_pointer::type>::value, ""); + static_assert(std::is_pointer::type>::value, ""); }