https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64913
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- And indeed if you fix the allocator (either by defining a correct my_allocator::rebind, or declaring it as private so std::allocator::rebind isn't found) then it compiles OK.