Skip to content

c++lib <iterator> header missing required items. #151698

@edfvogel

Description

@edfvogel

The following C++20 program will compile with other compilers, but not when -stdlib=libc++ is specified:

#include <iterator>
decltype(std::ranges::rbegin) x;

The C++ standard states:

24.3 Range access [range.access]
1 In addition to being available via inclusion of the <ranges> header, the customization point objects in 24.3
are available when <iterator> (23.2) is included.

Not a big deal, but I wanted to report this.

Ed Vogel

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.rangesIssues related to `<ranges>`

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions