diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index 3be8f9d5c..519cab7e6 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -798,7 +798,9 @@ TEST_CASE("regression tests 2") #ifdef JSON_HAS_CPP_20 #ifndef _LIBCPP_VERSION // see https://github.com/nlohmann/json/issues/4490 -#if __has_include() +// classic Intel ICC reports as includable but cannot actually compile +// std::span/std::as_bytes usage below +#if __has_include() && !defined(__ICC) && !defined(__INTEL_COMPILER) SECTION("issue #2546 - parsing containers of std::byte") { const char DATA[] = R"("Hello, world!")"; // NOLINT(misc-const-correctness,cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)