Re: Inconsistent error/pedwarn: ISO C++

2007-09-30 Thread Mark Mitchell
Manuel López-Ibáñez wrote: > On 20/09/2007, Doug Gregor <[EMAIL PROTECTED]> wrote: >> 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? >> >> typ

Re: Inconsistent error/pedwarn: ISO C++

2007-09-24 Thread Manuel López-Ibáñez
On 20/09/2007, Doug Gregor <[EMAIL PROTECTED]> wrote: > 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++ f

Inconsistent error/pedwarn: ISO C++

2007-09-20 Thread Doug Gregor
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: