[Bug c++/54376] incorrect complaint about redefinition
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Aug 25 21:04:00 GMT 2012
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;
}
More information about the Gcc-bugs
mailing list