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

Paul Keir Paul.Keir@uws.ac.uk
Sun Jun 14 22:40:16 GMT 2020


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.

Regards,
Paul




Please consider the environment and think before you print.

The University of the West of Scotland is a registered Scottish charity. Charity number SC002520.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.

Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the University of the West of Scotland.

As a public body, the University of the West of Scotland may be required to make available emails as well as other written forms of information as a result of a request made under the Freedom of Information (Scotland) Act 2002.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: char_traits_move.patch
Type: text/x-patch
Size: 3418 bytes
Desc: char_traits_move.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200614/49aa988f/attachment.bin>


More information about the Gcc-patches mailing list