https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- That swap couldn't have worked before because auto_vec eventually contains a pointer into itself. So the patch has improved things from broken to rejected. Rejected because while there's a move CTOR now, std::swap isn't happy with just that. No idea why - Jonathan?