From: Jonathan Wakely Date: Mon, 2 Mar 2020 12:18:45 +0000 (+0000) Subject: libstdc++: Add 'typename' to fix compilation with Clang X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fad000324d0bcc87283dc339423bfad6fa42c74;p=gcc.git libstdc++: Add 'typename' to fix compilation with Clang * include/bits/ranges_algo.h (shift_right): Add 'typename' to dependent type. --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 509de8ae916..7a02492339d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2020-03-02 Jonathan Wakely + + * include/bits/ranges_algo.h (shift_right): Add 'typename' to + dependent type. + 2020-03-01 H.J. Lu * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated. diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h index 8fa4a8a9161..a34f75f53d8 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::iterator_category; + using _Cat = typename iterator_traits::iterator_category; if constexpr (derived_from<_Cat, bidirectional_iterator_tag>) { auto __mid = ranges::next(__last, -__n, __first);