http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54376
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #9 from Marc Glisse <glisse at gcc dot gnu.org> 2012-08-25 21:04:15
UTC ---
(In reply to comment #3)
> This works of course:
[...]
Or this as well:
template<class> struct x {
friend bool operator==(x, x) { return false; }
};
int main()
{
x<int> x1;
x<double> x2;
x1 == x1;
x2 == x2;
}