From b2a6523d85ec5f4614acdd3176c2f8ed7a669f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Thu, 13 Feb 2020 16:57:33 +0100 Subject: [PATCH] Fix Clang-3.8 compilation of tests As far as I know, the compilation error is a compiler bug, but I do not want to just drop the support for something that is trivial to work around. --- tests/SelfTest/IntrospectiveTests/String.tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SelfTest/IntrospectiveTests/String.tests.cpp b/tests/SelfTest/IntrospectiveTests/String.tests.cpp index b7f4a2dd..5255804f 100644 --- a/tests/SelfTest/IntrospectiveTests/String.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/String.tests.cpp @@ -130,7 +130,7 @@ TEST_CASE("StringRef at compilation time", "[Strings][StringRef][constexpr]") { // * substr using Catch::StringRef; SECTION("Simple constructors") { - constexpr StringRef empty; + constexpr StringRef empty{}; STATIC_REQUIRE(empty.size() == 0); STATIC_REQUIRE(empty.begin() == empty.end());