This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange CPP failures
Jason R Thorpe wrote:-
> > No idea, sorry. Let me know how you get on.
>
> Well, in this particular case:
>
> #if (+1 - 2) > 0
> # error one
> #endif
>
> #if (+1U - 2) < 0
> # error two
> #endif
>
> ...produces:
>
> yeah-baby:thorpej 448$ /usr/local/gnu/bin/gcc -E foo.c
> # 1 "foo.c"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "foo.c"
> foo.c:6:3: #error two
> yeah-baby:thorpej 449$
>
> ...so the result is somehow not ending up as unsigned.
Have you tracked this down? There's an ominous silence,
the same way there was for the prior bugs of similar nature...
Neil.