------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-23 21:22 ------- (In reply to comment #2) > Okay, so sizeof isn't part of the pre-processor. That doesn't change the fact > that the #if as written in the code SHOULD be valid (by every C spec I've > looked at). Something in gcc is not doing the right thing. Don't just close > the bug because I made a mistake describing it; it's still a bug!
What spec are you reading? The preprocessor acts way before parsing/semantic anylsis happens. This is not a bug as the C preprocessor does not anything about types or any semantics of C, just themself. Even ICC rejects this code. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28823