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]
Other format: [Raw text]

Re: GCC 3.3.2: Some bug in the preprocessor?


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


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