<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55683>55683</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            libc++: search doesn't work for filesystem::path in version 14.0
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          carrotIndustries
      </td>
    </tr>
</table>

<pre>
    This code: https://gcc.godbolt.org/z/efYnd88oq

```c++
#include <filesystem>
#include <algorithm>

namespace fs = std::filesystem;
void test()
{
    fs::path p;
    fs::path b;
    std::search(p.begin(), p.end(), b.begin(), b.end());
}
```

Fails to compile with libc++ 14.0. The code compiles with clang 13 or clang 14 when using libstdc++.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUsuy2yAM_Rq8YeohfmfhRXrTzHR_N11ikG1aAi7Cydx-fRXHeTS9HgyCI46OJDqvP9r30SBXXgPLd3yMcUIyWHagMSiVDl533sbUh4FO_tAP_Q-nm8b_ZmLPxG6dK3EdimVfL-N6muXGKTtr4Cx_640F_MAIR5Z_-8xB2sEHE8cnfJmdPAJOUgHvkfz2HKO-iMx3z5RrzJM3mkfAyLKGZduVp15RTl-P18uTjCOf7hf_g7p_oHtMBBnUSOxT2sFg3Bone-NTCk4_tt0r3j3j2zs7q_cvRXxO_iCNRR499eg4Ubr8TBXi1nRrpfmmSEXK30dYunhzw6ufstINfJNzH252wc8jOD6joR3xUGIrVXqNmOg219t8K5NoooX2EevyRK7pc-0BKbU68rMPv3hP_M_NuBfROH6CgMa7RWgyB9u-vDLSOXcp6aaNtafb8mUK_ico6uPBIM6AZJRl1eTJ2HZN3VVNX4MUma43pFVAIapSFFCKMteJlR1YbFlJsjMHZ75QkM3KfWLaTGSZKLOCpk1ep31Fl1UvZS-qulSCFQKOVPf0ouPy9JPQLpK6eUACrcGID1AimsEBLOGIX85x9KFVMgQfvzs9YwwGMFk0tEsOfwFcMAhQ">