This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Inconsistent error/pedwarn: ISO C++
- From: "Doug Gregor" <doug dot gregor at gmail dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Thu, 20 Sep 2007 07:17:43 -0400
- Subject: Inconsistent error/pedwarn: ISO C++
We can't seem to decide whether ISO C++ really forbids comparisons
between pointers and integers or not. The first two are for == and !=,
the second two are for <, >, <=, >=. Why the inconsistency?
typeck.c: error ("ISO C++ forbids comparison between pointer
and integer");
typeck.c: error ("ISO C++ forbids comparison between pointer
and integer");
typeck.c: pedwarn ("ISO C++ forbids comparison between
pointer and integer");
typeck.c: pedwarn ("ISO C++ forbids comparison between
pointer and integer");
- Doug