https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92224
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- The standard says that the template argument for an allocator must be a non-const, non-volatile object type, so trying to instantiate std::allocator<const int> is undefined, and libstdc++ is allowed to reject it.