public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/113202] New: std::find does not work with the maximum range of pointers
@ 2024-01-02 16:22 carsten.schmidt-achim at gmx dot de
  2024-01-02 16:23 ` [Bug libstdc++/113202] " carsten.schmidt-achim at gmx dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: carsten.schmidt-achim at gmx dot de @ 2024-01-02 16:22 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-01-03 11:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 16:22 [Bug libstdc++/113202] New: std::find does not work with the maximum range of pointers carsten.schmidt-achim at gmx dot de
2024-01-02 16:23 ` [Bug libstdc++/113202] " carsten.schmidt-achim at gmx dot de
2024-01-02 16:23 ` carsten.schmidt-achim at gmx dot de
2024-01-02 16:24 ` carsten.schmidt-achim at gmx dot de
2024-01-02 16:26 ` carsten.schmidt-achim at gmx dot de
2024-01-02 16:43 ` pinskia at gcc dot gnu.org
2024-01-03  9:59 ` carsten.schmidt-achim at gmx dot de
2024-01-03 10:08 ` pinskia at gcc dot gnu.org
2024-01-03 10:14 ` pinskia at gcc dot gnu.org
2024-01-03 10:16 ` xry111 at gcc dot gnu.org
2024-01-03 10:20 ` xry111 at gcc dot gnu.org
2024-01-03 11:19 ` redi at gcc dot gnu.org
2024-01-03 11:22 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).