https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106239
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Hmm: https://en.cppreference.com/w/cpp/container/vector/resize (I know exactly not the C++ standard but usually gives a good summary of it): -T must meet the requirements of CopyInsertable in order to use overload (2). https://en.cppreference.com/w/cpp/named_req/CopyInsertable https://en.cppreference.com/w/cpp/named_req/MoveInsertable I think libstdc++ is correct here ...