From e91c2cac3486cc7c09c07c861d7938055598d211 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 9 May 2017 11:11:19 -0400 Subject: [PATCH] * testsuite/24_iterators/container_access.cc (test03): Make il3 static. From-SVN: r247799 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/24_iterators/container_access.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f2859399266..d29c2e523a7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2017-05-09 Jason Merrill + + * testsuite/24_iterators/container_access.cc (test03): Make il3 static. + 2017-05-08 Jonathan Wakely * include/std/optional: Use a separate static_assert per condition. diff --git a/libstdc++-v3/testsuite/24_iterators/container_access.cc b/libstdc++-v3/testsuite/24_iterators/container_access.cc index 42ecb410372..7f60d2bda48 100644 --- a/libstdc++-v3/testsuite/24_iterators/container_access.cc +++ b/libstdc++-v3/testsuite/24_iterators/container_access.cc @@ -55,7 +55,7 @@ test03() std::initializer_list il2{}; VERIFY(std::size(il2) == 0); VERIFY(std::empty(il2)); - constexpr std::initializer_list il3{1,2,3}; + static constexpr std::initializer_list il3{1,2,3}; constexpr auto d = std::data(il3); static_assert(d == il3.begin()); constexpr auto s = std::size(il3); -- 2.30.2