* testsuite/24_iterators/container_access.cc (test03): Make il3 static.
authorJason Merrill <jason@redhat.com>
Tue, 9 May 2017 15:11:19 +0000 (11:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 May 2017 15:11:19 +0000 (11:11 -0400)
From-SVN: r247799

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/24_iterators/container_access.cc

index f285939926652589a5e3a7ca2416a8694809d961..d29c2e523a784d835a7fafc682cc04c905d850ec 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-09  Jason Merrill  <jason@redhat.com>
+
+       * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
+
 2017-05-08  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/std/optional: Use a separate static_assert per condition.
index 42ecb410372c571e05f3567786aa0be58fcb2ff0..7f60d2bda481285c716491b81f671bd74b8af52c 100644 (file)
@@ -55,7 +55,7 @@ test03()
   std::initializer_list<int> il2{};
   VERIFY(std::size(il2) == 0);
   VERIFY(std::empty(il2));
-  constexpr std::initializer_list<int> il3{1,2,3};
+  static constexpr std::initializer_list<int> il3{1,2,3};
   constexpr auto d = std::data(il3);
   static_assert(d == il3.begin());
   constexpr auto s = std::size(il3);