Macro expansions by 2 different C preprocessors

Doug Gwyn gwyn at smoke.brl.mil
Wed Apr 10 14:29:33 AEST 1991


In article <acOn01ls55Ex00 at amdahl.uts.amdahl.com> tej at amdahl.uts.amdahl.com (Tejkumar Arora) writes:
>compiler A: fails to compile. gets stuck at the field major in struct foo.
>	    thinks it is a macro and complains of missing argument.

That is the behavior of a Reiser CPP, one of many bugs it has.

>compiler B: compiles successfully. determines from context & usage that the
>	    field major is not a macro....

That is what a standard conforming compiler must do (the only relevant
context is whether or not the next preprocessing token after the identifier
is a left parenthesis).



More information about the Comp.lang.c mailing list