[Bug c++/36921] [4.3/4.4 Regression] warning "comparison does not have mathematical meaning" is not correct for overloaded operators that do not return boolean
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 3 17:49:00 GMT 2008
------- Comment #8 from mmitchel at gcc dot gnu dot org 2008-12-03 17:47 -------
I'm not convinced that we shouldn't warn in these cases. Yes, there are cases
where people overload the operators in ways that make normal precedence
irrelevant. But, there are also cases where people define boolean-like objects
that are not themselves "bool".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36921
More information about the Gcc-bugs
mailing list