https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86074
Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Yeah, it's invalid. The template friend operator== function's signature does not depend on the enclosing template at all. so, when instantiated in say simpleAllocator<char> and simpleAllocator<short>, will collide.