diff --git a/libcxx/include/span b/libcxx/include/span --- a/libcxx/include/span +++ b/libcxx/include/span @@ -129,11 +129,9 @@ */ #include <__config> -#include // for ptrdiff_t +#include // for byte #include // for iterators -#include // for array #include // for remove_cv, etc -#include // for byte #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header @@ -146,6 +144,8 @@ inline constexpr size_t dynamic_extent = numeric_limits::max(); template class span; +template +struct array; template struct __is_span_impl : public false_type {}; diff --git a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp --- a/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp +++ b/libcxx/test/std/containers/views/span.cons/stdarray.pass.cpp @@ -22,6 +22,7 @@ #include +#include #include #include