https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113202
Bug ID: 113202 Summary: std::find does not work with the maximum range of pointers Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: carsten.schmidt-achim at gmx dot de Target Milestone: --- When using std::find() to operate on a range of pointers that is delimited by the maximum pointer value possible, AKA std::numeric_limits<void*>::max(), std::find() returns unreasonable results; cf. the attached example. When implementing the same functionality using std::ranges::find(), the returned results are reasonable.