[Bug c++/104722] Wrong std::accumulate result with -D_GLIBCXX_PARALLEL flag

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 00:07:18 GMT 2022


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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 52542
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52542&action=edit
Do not parallelize std::accumulate

Something like this would "fix" it.


More information about the Gcc-bugs mailing list