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]

Traditional numbers


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.


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