https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105258
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The simplest solution would be to just use std::allocator<T> which already does the right thing, but that would break if there is a program-defined specialization of std::allocator<T>.