<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang++ 10.0 fails with libstdc++ from gcc 10-20200216"
   href="https://bugs.llvm.org/show_bug.cgi?id=44955">44955</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang++ 10.0 fails with libstdc++ from gcc 10-20200216
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bero@lindev.ch
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Not 100% sure whether this is a libstdc++ bug or a clang bug. (Also filed a bug
report against libstdc++ at
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93818">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93818</a>).

Using libstdc++ from gcc 10-20200216 breaks using it with clang 10 in C++20
mode.

/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1329:17:
error: missing 'typename' prior to dependent type name
'iterator_traits<iterator_t<_Vp> >::iterator_category'
          using _Cat = iterator_traits<iterator_t<_Vp>>::iterator_category;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1512:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor filter
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1513:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1513:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1552:19:
error: missing 'typename' prior to dependent type name
'iterator_traits<iterator_t<_Base> >::iterator_category'
            using _Cat = iterator_traits<iterator_t<_Base>>::iterator_category;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1853:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor transform
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1854:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1854:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2000:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor take
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2001:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2001:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2092:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor take_while
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2093:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2093:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2169:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor drop
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2170:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2170:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2225:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor drop_while
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2226:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2226:9)]
        _RangeAdaptor(_Callable __callable)
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2297:10:
error: missing 'typename' prior to dependent type name
'iterator_traits<iterator_t<_Base> >::iterator_category'
              = iterator_traits<iterator_t<_Base>>::iterator_category;
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2299:10:
error: missing 'typename' prior to dependent type name
'iterator_traits<iterator_t<range_reference_t<_Base> > >::iterator_category'
              = iterator_traits<iterator_t<range_reference_t<_Base>>>
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2768:19:
error: missing 'typename' prior to dependent type name
'iterator_traits<iterator_t<_Base> >::iterator_category'
            using _Cat = iterator_traits<iterator_t<_Base>>::iterator_category;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2942:47:
error: ambiguous deduction for template arguments of '_RangeAdaptor'
    inline constexpr __adaptor::_RangeAdaptor split
                                              ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1073:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2943:9)]
        _RangeAdaptor(const _Callable& = {})
        ^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:1078:2:
note: candidate function [with _Callable = std::ranges::views::(lambda at
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/ranges:2943:9)]
        _RangeAdaptor(_Callable __callable)
        ^
12 errors generated.


libstdc++ from gcc 10-20200209 works perfectly with both gcc and clang.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>