https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125878

            Bug ID: 125878
           Summary: Some search algorithms form <algorithm> called with
                    execution policies fail to produce correct result.
           Product: gcc
           Version: 16.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gaspar_pm at proton dot me
  Target Milestone: ---

Created attachment 64773
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64773&action=edit
cpp code with bug1 and bug2 functions

In bug1 (a function from the attached cpp file) std::find_end with
std::execution::par returns arr.cend () while without the execution policy it
correctly finds the iterator.

In bug2 two calls of std::find_first_of being different only by the given
execution policy produce different results - the call with par_unseq policy
fails to find the iterator.

Reply via email to