https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> --- Created attachment 44638 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44638&action=edit proof of concept patch (diff -w) Trying to get an idea of how things could look like. I know is_trivially_move_constructible is not officially the right test to be allowed to use memmove, that's a detail that can easily be changed.