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

2020-06-15 Thread Jonathan Wakely via Gcc-patches
On 15/06/20 14:42 +0100, Jonathan Wakely wrote: On 14/06/20 22:40 +, 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 i

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

2020-06-15 Thread Jonathan Wakely via Gcc-patches
On 14/06/20 22:40 +, 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 m