<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 - std::filesystem::path::iterator::iterator_category is non-comformingly "bidirectional_iterator_tag""
   href="https://bugs.llvm.org/show_bug.cgi?id=38504">38504</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>std::filesystem::path::iterator::iterator_category is non-comformingly "bidirectional_iterator_tag"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Casey@Carter.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>std::filesystem::path::iterator's member iterator_category is an alias for
bidirectional_iterator_tag, despite that it does not satisfy the requirement in
[forward.iterators]/6:

  If a and b are both dereferenceable, then a == b if and only if *a and *b
  are bound to the same object.

An iterator cannot be bidirectional if it is not forward, so the
iterator_category should in fact be input_iterator_tag, or - as a conforming
extension - some other type which is convertible to input_iterator_tag but not
convertible to forward_iterator_tag.

Note that if path::iterator::operator* were to return a prvalue it would
conform to the BidirectionalIterator concept in the Ranges proposal, and could
conformingly define its member iterator_concept as an alias for
std::bidirectional_iterator_tag.</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>