From 84f57949abd4b69ac4003daa16537202096ea71f Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Wed, 14 Nov 2018 19:39:38 +0100 Subject: [PATCH] Update span size() bug confirmation test for GCC 6.5 (#741) --- tests/span_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index b38b4eb..e8c06e6 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -506,15 +506,15 @@ TEST_CASE("from_std_array_constructor") CHECK((s.size() == narrow_cast(arr.size()) && s.data() == arr.data())); } - // This test checks for the bug found in gcc 6.1, 6.2, 6.3, 7.1, 7.2, 7.3 - issue #590 + // This test checks for the bug found in gcc 6.1, 6.2, 6.3, 6.4, 6.5 7.1, 7.2, 7.3 - issue #590 { span s1 = make_span(arr); static span s2; s2 = s1; - #if __GNUC__ == 6 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ == 0 && defined(__OPTIMIZE__) - // Known to be broken in gcc 6.4 with optimizations + #if __GNUC__ == 6 && (__GNUC_MINOR__ == 4 || __GNUC_MINOR__ == 5) && __GNUC_PATCHLEVEL__ == 0 && defined(__OPTIMIZE__) + // Known to be broken in gcc 6.4 and 6.5 with optimizations // Issue in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83116 CHECK(s1.size() == 4); CHECK(s2.size() == 0);