aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-03-02 12:18:45 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-03-02 12:19:46 +0000
commit5fad000324d0bcc87283dc339423bfad6fa42c74 (patch)
treef651016959c2823b4421a2a2c958cf0fee0caa1f /libstdc++-v3/include
parentc9d92a575c98057d4bdc2058f0df417634cba860 (diff)
downloadgcc-5fad000324d0bcc87283dc339423bfad6fa42c74.zip
gcc-5fad000324d0bcc87283dc339423bfad6fa42c74.tar.gz
gcc-5fad000324d0bcc87283dc339423bfad6fa42c74.tar.bz2
libstdc++: Add 'typename' to fix compilation with Clang
* include/bits/ranges_algo.h (shift_right): Add 'typename' to dependent type.
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/ranges_algo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index 8fa4a8a..a34f75f 100644
--- a/libstdc++-v3/include/bits/ranges_algo.h
+++ b/libstdc++-v3/include/bits/ranges_algo.h
@@ -3710,7 +3710,7 @@ namespace ranges
if (__n == 0)
return __first;
- using _Cat = iterator_traits<ForwardIterator>::iterator_category;
+ using _Cat = typename iterator_traits<ForwardIterator>::iterator_category;
if constexpr (derived_from<_Cat, bidirectional_iterator_tag>)
{
auto __mid = ranges::next(__last, -__n, __first);