https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108619
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Once I add: template <class Type> struct rebind { typedef alloc<Type> other; }; To alloc, it works correctly. The error message on the trunk gives the best error message of what is going wrong even. So this is invalid.