https://gcc.gnu.org/g:6b78e97a0cbc60dea937f3bf67c5d47033cf4731

commit r16-6065-g6b78e97a0cbc60dea937f3bf67c5d47033cf4731
Author: Luc Grosheintz <[email protected]>
Date:   Fri Dec 12 12:28:01 2025 +0100

    libstdc++: Make <mdspan> 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 <[email protected]>
    Signed-off-by: Luc Grosheintz <[email protected]>

Diff:
---
 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 dc0aa4f9584f..cedf597d3c26 100644
--- a/libstdc++-v3/include/std/mdspan
+++ b/libstdc++-v3/include/std/mdspan
@@ -3376,7 +3376,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   template<typename _ElementType, typename _Extents, typename _Layout,
           typename _Accessor, typename... _RawSlices>
     requires (sizeof...(_RawSlices) == _Extents::rank()
-       && __mdspan::__sliceable_mapping<typename _Layout::mapping<_Extents>,
+       && __mdspan::__sliceable_mapping<typename _Layout::template 
mapping<_Extents>,
                                         
__mdspan::__full_extent_t<_RawSlices>...>)
     constexpr auto
     submdspan(

Reply via email to