This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]