This is the mail archive of the gcc@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]

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


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