https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121789
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2025-09-04
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Avi Kivity from comment #0)
> Likely the memcpyable detection web gets confused by the move_iterator
Yes, I think that is the reason.
> (btw: the testq/jle sequence in f() can be replaced with jne, since the
> flags aren't touched and having a negative memory size is undefined
> behavior; I'm also not sure we aren't better off delegating the check to
> memcpy itself)
That observation will get ignored for a component=libstdc++ bug :)
Please consider filing it separately if you think it's worth it.