From: Jonathan Wakely Date: Tue, 8 Jul 2025 21:04:29 +0000 (+0100) Subject: libstdc++: Add more template keywords to for Clang X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d24612a2e453aa4755821a4d168bbc338a20036;p=thirdparty%2Fgcc.git libstdc++: Add more template keywords to for Clang This fixes: include/c++/16.0.0/mdspan:1182:33: error: use 'template' keyword to treat 'mapping' as a dependent template name 1182 | const typename _OLayout::mapping<_OExtents>&> | ^ include/c++/16.0.0/mdspan:1185:31: error: use 'template' keyword to treat 'mapping' as a dependent template name 1185 | const typename _OLayout::mapping<_OExtents>&, mapping_type> | ^ libstdc++-v3/ChangeLog: * include/std/mdspan (mdspan): Add template keyword for dependent name. --- diff --git a/libstdc++-v3/include/std/mdspan b/libstdc++-v3/include/std/mdspan index 5d16de5d907..b34116a85e6 100644 --- a/libstdc++-v3/include/std/mdspan +++ b/libstdc++-v3/include/std/mdspan @@ -1179,10 +1179,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template requires is_constructible_v&> + const typename _OLayout::template mapping<_OExtents>&> && is_constructible_v constexpr explicit(!is_convertible_v< - const typename _OLayout::mapping<_OExtents>&, mapping_type> + const typename _OLayout::template mapping<_OExtents>&, mapping_type> || !is_convertible_v) mdspan(const mdspan<_OElementType, _OExtents, _OLayout, _OAccessor>& __other)