]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use template keyword in __mapping_of alias template
authorJonathan Wakely <jwakely@redhat.com>
Mon, 7 Jul 2025 10:32:48 +0000 (11:32 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 Jul 2025 20:50:50 +0000 (21:50 +0100)
commit9450fb705caca3df0f968e66768eec6e38458a9f
tree5f7fe790c4e16d86fc7d23fec3f499dd5eede038
parent54c640ba3971d00b65cc48fef91dac6edc11dd09
libstdc++: Use template keyword in __mapping_of alias template

This is needed to fix an error with Clang 19:

include/c++/16.0.0/mdspan:512:30: error: use 'template' keyword to treat 'mapping' as a dependent template name
 512 |         is_same_v<typename _Layout::mapping<typename _Mapping::extents_type>,
     |                                     ^

libstdc++-v3/ChangeLog:

* include/std/mdspan (__mapping_of): Add template keyword.
libstdc++-v3/include/std/mdspan