https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- For your reproducer, the allocator is std::allocator<char> which is an empty class and copying is a no-op. There is no efficiency concern whatsoever.