3 msgtgmath.h and newlib
2 msgHow to force instruction in slot1 while emit NO...
5 msgAST-tree in GCC
2 msggcc crosscompile for PPC, Please help!
1 msgRegister Allocation Reviewers
1 msgCambio de direccion.
5 msghow to chase a tree check failure in verify_ssa?
6 msgsupport single predicate set instructions in GC...
1 msggcc-4.3-20070921 is now available
25 msg[RFC] failures found while pounding on GCC trunk
1 msgBootstrap comparison failure on sparc64/sparc l...
2 msgUnderstanding Macro Pre-processor
3 msgfunction overloading and variadic arguments
4 msgg++ 4.3.0 error: changes meaning
7 msgBug in gcc: assignment to non-lvalue

Inconsistent error/pedwarn: ISO C++
\ Doug Gregor (20 Sep 2007)
. \ Manuel López-Ibáñez (24 Sep 2007)
. . \ Mark Mitchell (1 Oct 2007)

4 msgGCC spec posting on AMD Barcelona
1 msgRe: [Bug c/33076] Warning when passing a pointe...
1 msgpowerpc bootstrap failure
12 msgMIPS atomic memory operations (A.K.A PR 33479).
Subject:Re: Inconsistent error/pedwarn: ISO C++
Group:Gcc
From:Manuel López-Ibáñez
Date:24 Sep 2007


On 20/09/2007, Doug Gregor <doug.gregor> 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++ 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");
>

Open a PR and CC Gabriel. I am sure he will give his opinion as soon
as he has free time. Otherwise, this may get forgotten. As I guess, I
think that if ISO C++ forbids the comparison, this should be a
pedwarn. On the other hand, this may be some special case as these
ones:

cd ~/src/trunk/gcc/cp/
grep -n -e "error (.*ISO C\+\+" *.c /dev/null
decl.c:4232: error ("ISO C++ forbids use of initializer list to "
decl.c:6835: error ("ISO C++ forbids in-class initialization of non-const "
decl.c:9753: error ("ISO C++ prohibits overloading operator ?:");
typeck.c:3360: error ("ISO C++ forbids comparison between pointer
and integer");
typeck.c:3365: error ("ISO C++ forbids comparison between pointer
and integer");
typeck.c:5575: error ("ISO C++ forbids casting to an array type %qT", type);

Cheers,

Manuel.


© 2004-2008 readlist.com