This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Traditional numbers
- To: gcc at gcc dot gnu dot org
- Subject: Traditional numbers
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 27 Jul 2001 18:35:48 +0100
PR 3824 is about the interpretation of numbers by a traditional
preprocessor. I don't know the rules here (or even if there are /
were any consistent rules).
------------------
int main()
{
#if 0xffffffff < 0
puts("cpp:negative");
#else
puts("cpp:positive");
#endif
puts(0xffffffff < 0 ? "c:negative" : "c:positive");
return 0;
}
bash$ gcc3 -traditional a.c && ./a.out
cpp:positive
c:negative
-----------------
Does the list agree that the above behaviour is a bug?
Neil.