[Bug c++/86074] gcc fails to compile a code sample
nathan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 7 05:58:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list