This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: work-around for bug in -traditional-cpp
Marc Espie wrote:-
> On Tue, Nov 25, 2003 at 02:27:50PM +0100, Andreas Schwab wrote:
> > An even simpler test case:
> >
> > #define a(b,c)
> > #if 0
> > #define b(x,y) a(x)
> > #endif
> >
> > cpp.c:3: macro "a" requires 2 arguments, but only 1 given
> >
> > Interestingly, changing #if 0 to #if 1 removes the error.
>
> Okay, it looks like trad-cpp is messing with skipping.
If you're skipping you shouldn't even be attempting to expand
macros.
Neil.