libstdc++: Add 'typename' to fix compilation with Clang
authorJonathan Wakely <jwakely@redhat.com>
Mon, 2 Mar 2020 12:18:45 +0000 (12:18 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 2 Mar 2020 12:19:46 +0000 (12:19 +0000)
* include/bits/ranges_algo.h (shift_right): Add 'typename' to
dependent type.

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ranges_algo.h

index 509de8ae9164e5a39152768fe09790ecfbb9c524..7a02492339d431910067f22c55851a8248d5eca9 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-02  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/ranges_algo.h (shift_right): Add 'typename' to
+       dependent type.
+
 2020-03-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
index 8fa4a8a91610fa3f4d724ea5053a9ab73bb49a1e..a34f75f53d88401822df313734ba23e19f7b4f29 100644 (file)
@@ -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);