[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

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Dec 20 18:48:00 GMT 2008



------- Comment #10 from jakub at gcc dot gnu dot org  2008-12-20 18:47 -------
Subject: Bug 36921

Author: jakub
Date: Sat Dec 20 18:46:12 2008
New Revision: 142849

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142849
Log:
        PR c++/36921
        * c-common.c (warn_about_parentheses): Remove ARG_UNUSED from
        arg_left.  Don't warn about X<=Y<=Z if comparison's type isn't
        integral.

        * g++.dg/warn/pr36921.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr36921.C
Modified:
    trunk/gcc/c-common.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36921



More information about the Gcc-bugs mailing list