PR 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
Mark Mitchell
mark@codesourcery.com
Sat Dec 20 00:13:00 GMT 2008
Jason Merrill wrote:
> Mark: I understand your objection on the basis of user-defined Boolean
> types, but I think that the false positive rate for this warning for
> arbitrary overloads such as the PR submitter's is likely to outweigh the
> false negatives for Boolean classes.
I'm just not sure. That also means I don't object if everyone else
feels that it makes sense to avoid the warning. :-)
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list