From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8570738582BC; Sat, 25 Feb 2023 14:29:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8570738582BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677335382; bh=ROLv3fvK1EoHlPmsPuRI679QY6/SG6tCN9x3LsusU+E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Irmpx3hQQQrePQlDozQYxRdGpwspZz1PKgJhU3/g1PECB4Y8M5P5eWrDT3KhZokmd ouH3W6cAbScpq7hLYDxMZw+y4PNpcD0n7PGIFxgOwMFTauhn6jjJXUB8wk+w6LDzR+ AFcIZhZpsqtVdw5vCpzhOm8CMGwneMk3gAJyojBM= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108846] std::copy, std::copy_n and std::copy_backward on potentially overlapping subobjects Date: Sat, 25 Feb 2023 14:29:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108846 --- Comment #18 from Jonathan Wakely --- Created attachment 54537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54537&action=3Dedit libstdc++: Do not use memmove for 1-element ranges [PR108846] This is a more complete patch that passes Arthur's test in comment 0.=