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

Jiang An <de34 at live dot cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |de34 at live dot cn

--- Comment #1 from Jiang An <de34 at live dot cn> ---
> I think it's within its rights to do that, and thus the behavior of this 
> program
> is undefined by the standard (specifically, 
> https://eel.is/c++draft/alg.copy#12
> doesn't claim that it *is* defined, so it's undefined).

Sounds interesting. At least UB won't be triggered if each `*(result + i) =
*(first + i)` is sequentially executed.

So are the so-called sequential (non-parallel) versions of algorithms not
really sequential?

Reply via email to