This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] PR libstdc++/79195 fix make_array type deduction
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 Jan 2017 23:59:40 +0000
- Subject: Re: [PATCH] PR libstdc++/79195 fix make_array type deduction
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnykJuQx62vdvEiGzxPiy+JSw1hkSSLEyzhK3emrt7P4X7w@mail.gmail.com>
On 23/01/17 18:40 -0500, David Edelsohn wrote:
FAIL: experimental/array/make_array.cc (test for excess errors)
Excess errors:
/nasfarm/edelsohn/src/src/libstdc++v3/testsuite/experimental/array/make_array.cc:38:
error: 'ref' is not a member of 'std'
I wonder why I didn't see that fail, probably PCH.
Fixed like so.
commit 51ae429c1ef5d367f9128a039fa31f9c4223a939
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Jan 23 23:54:40 2017 +0000
Restore <functional> header to test
* testsuite/experimental/array/make_array.cc: Restore <functional>
inclusion.
diff --git a/libstdc++-v3/testsuite/experimental/array/make_array.cc b/libstdc++-v3/testsuite/experimental/array/make_array.cc
index 1b7d60e..75f5333 100644
--- a/libstdc++-v3/testsuite/experimental/array/make_array.cc
+++ b/libstdc++-v3/testsuite/experimental/array/make_array.cc
@@ -18,6 +18,7 @@
// <http://www.gnu.org/licenses/>.
#include <experimental/array>
+#include <functional> // for std::ref and std::reference_wrapper
struct MoveOnly
{