]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add more template keywords to <mdspan> for Clang
authorJonathan Wakely <jwakely@redhat.com>
Tue, 8 Jul 2025 21:04:29 +0000 (22:04 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Jul 2025 16:56:22 +0000 (17:56 +0100)
commit4d24612a2e453aa4755821a4d168bbc338a20036
treebd6141bcadabc8d08603c9e3f77056fe002ba176
parenta72d0e1a8bf0770ddf1d8d0ebe589f92a4fab4ef
libstdc++: Add more template keywords to <mdspan> 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.
libstdc++-v3/include/std/mdspan