From 6b78e97a0cbc60dea937f3bf67c5d47033cf4731 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Fri, 12 Dec 2025 12:28:01 +0100 Subject: [PATCH] libstdc++: Make compatible with clang. The submdspan feature broke compatibility with clang, due to a missing '::template type'. libstdc++-v3/ChangeLog: * include/std/mdspan (submdspan): Fix missing '::template'. Reviewed-by: Jonathan Wakely Signed-off-by: Luc Grosheintz --- libstdc++-v3/include/std/mdspan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/mdspan b/libstdc++-v3/include/std/mdspan index dc0aa4f9584..cedf597d3c2 100644 --- a/libstdc++-v3/include/std/mdspan +++ b/libstdc++-v3/include/std/mdspan @@ -3376,7 +3376,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template requires (sizeof...(_RawSlices) == _Extents::rank() - && __mdspan::__sliceable_mapping, + && __mdspan::__sliceable_mapping, __mdspan::__full_extent_t<_RawSlices>...>) constexpr auto submdspan( -- 2.47.3