This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC 3.3.2: Some bug in the preprocessor?
- From: Denis Zaitsev <zzz at anda dot ru>
- To: gcc at gcc dot gnu dot org, linux-gcc at vger dot kernel dot org
- Date: Fri, 13 Feb 2004 01:29:58 +0500
- Subject: GCC 3.3.2: Some bug in the preprocessor?
Look, this defun returns 0, and this is correct:
tst()
{
#if (unsigned)0 > -1
return 1;
#else
return 0;
#endif
}
But this one returns 1, and this is incorrect:
tst()
{
#if 0 > (unsigned)-1
return 1;
#else
return 0;
#endif
}
What's wrong?