From 78f02e8003d1f16b9f7371eac0f39ad734c8b714 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 10 Jan 2020 15:27:50 +0000 Subject: [PATCH] libstdc++: Fix testcase for C++98 compatibility * testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11 initialization syntax. From-SVN: r280117 --- libstdc++-v3/ChangeLog | 3 +++ .../testsuite/25_algorithms/equal/deque_iterators/1.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d1392c91649..3d25ecc3da1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2020-01-10 Jonathan Wakely + * testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11 + initialization syntax. + PR libstdc++/92285 * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type of base class independent of __cplusplus value. diff --git a/libstdc++-v3/testsuite/25_algorithms/equal/deque_iterators/1.cc b/libstdc++-v3/testsuite/25_algorithms/equal/deque_iterators/1.cc index be60db813cc..82bef051542 100644 --- a/libstdc++-v3/testsuite/25_algorithms/equal/deque_iterators/1.cc +++ b/libstdc++-v3/testsuite/25_algorithms/equal/deque_iterators/1.cc @@ -104,7 +104,7 @@ void test05() { using namespace std; - int a[] { 0, 1, 2, 3, 4 }; + int a[] = { 0, 1, 2, 3, 4 }; deque > d1(a, a + 5); deque > d2(a, a + 5); -- 2.30.2