diff mbox

PR libstdc++/79195 fix make_array type deduction

Message ID 20170123235940.GD3093@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely Jan. 23, 2017, 11:59 p.m. UTC
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.
diff mbox

Patch

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
 {