]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
re PR c++/36921 (warning "comparison does not have mathematical meaning" is not corre...
authorJakub Jelinek <jakub@redhat.com>
Sat, 20 Dec 2008 18:46:12 +0000 (19:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 20 Dec 2008 18:46:12 +0000 (19:46 +0100)
commitfb3e178a78e0cfef9146dc17beb69ae53ed64616
treea561d1d4957ce2ac0cd8556dd57969d83b2278bd
parent3ce1b2de2504c2cb2918c0e0c851eb15a873d7c4
re PR c++/36921 (warning "comparison does not have mathematical meaning" is not correct for overloaded operators that do not return boolean)

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.

Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r142849
gcc/c-common.c
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr36921.C [new file with mode: 0644]