This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.3.2: Some bug in the preprocessor?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: linux-gcc at vger dot kernel dot org
- Date: Thu, 12 Feb 2004 12:34:04 -0800
- Subject: Re: GCC 3.3.2: Some bug in the preprocessor?
- References: <20040213012958.A14323@zzz.ward.six>
You cannot use casts in #if. Your conditionals are read as
#if (0)0 > -1
which produces a syntax error;
#if 0 > (0)-1
which evaluates as 0 > 0 - 1 which is true.
zw