<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/151698>151698</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
c++lib <iterator> header missing required items.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
edfvogel
</td>
</tr>
</table>
<pre>
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
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUstunDwUfhqzOQryBSawYDGTZKRs_sWvqnsbH-BUBlPbzDR9-soMUS8SEgb7fP5uOkYaF8SO1RdWvxZ6S5MPHdrh5kd0hfH2o_syIQzeOX-nZYQXJi9MXiSHNfgx6Bnu5Bz0fl7JIdwpTeDThOHzV4hMvoDZEiw-wX3CBZ5iso4MU6-OTP8ABIoQV-xpILRMnRnfH6lo6d1mEZh6oYRBJx-YemP8bLF36WNFJpuY9hF1DnoZMR5rgyMtTLbwg6nLAy9rORRATHqxOti8SI-h_YysSgX_ZyDQfY8xAqsvO3D5-Gb1K-NnAe8LaGspkV8geTCY_dE3TU4bh3AjDTv5mA_4AdK0q_jk-AYTaosh25O3-i0mP9NPvQOunpYE3nzDPkWgBTItxs864B937Hb-7Qww2UhVyiycIhz22fIwlJ__8wk0GBrBonaf4bzDXS8JbVYScPUhQZooHmNvFr7mRjB-LmynbKtaXWAnnuuK19VJimLqhKlVI6r-uT7ZCisziKHF5oRi4E07KF5QJ7msecOFUFJVouSaP0vRtkZZIRpRsYrjrMmVzt3m0oexoBg37EQtTm1TOG3Qxb2rUi54h32XSZmrG7o89GS2MbKKO4op_oZJlBx2R9McmX8tewQBM8WYMwz4faOAFijhHMtiC66bUlr3jsgrk9eR0rSZsvczk9d8zfF6WoPPiTF53clFJq8H-1snfwUAAP__vOMY-w">