[PATCH] libstdc++: Fix char_traits move with overlap

Jonathan Wakely jwakely@redhat.com
Mon Jun 15 13:42:57 GMT 2020


On 14/06/20 22:40 +0000, Paul Keir wrote:
>Hi,
>
>Upon constexpr evaluation, char_traits move uses copy_backward, but its last argument should be to the range end rather than its beginning. I include the fix and a test.
>
>This is my first patch, so if it looks OK, perhaps someone could commit for me.

The patch is fine, and small enough to not need a copyright
assignment, so I've tested it and committed it. Thanks very much!

I've also committed the attached patch, which bumps the feature test
macro to indicate support for this feature. That macro is not defined
by the C++ committee, but I'm treating that as a defect and will get
it added.

Tested powerpc64le-linux, committed to master.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 4673 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20200615/196a2bba/attachment.bin>


More information about the Libstdc++ mailing list