[Bug libstdc++/100900] error: missing 'typename' prior to dependent type name in <ranges> elements_view

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 7 15:24:28 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100900

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Patrick Palka
<ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:23fa1e7eab7680ae0488b4c8802b0bcd8f78425d

commit r11-8519-g23fa1e7eab7680ae0488b4c8802b0bcd8f78425d
Author: Avi Kivity <avi@scylladb.com>
Date:   Mon Jun 7 11:19:05 2021 -0400

    libstdc++: add missing typename for dependent type in ranges::elements_view
[PR100900]

    Clang complains about the missing typename. I believe it's not required
    in a more complete implementation of C++, but it's nicer to support
    less complete implementations.

            PR libstdc++/100900

    libstdc++-v3/ChangeLog:

            * include/std/ranges (elements_view::__iter_cat::_S_iter_cat):
            Add missing typename.

    (cherry picked from commit 5e2e15f212e2458a1258b8c856895c755460bc6b)


More information about the Gcc-bugs mailing list