[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#154767: cpp-2.95: cpp fails to parse macros with varargs correctly



On Tue, Jul 30, 2002 at 01:21:48AM +0200, Martin v. Loewis scribbled:
> Marek Habersack <grendel@debian.org> writes:
> 
> > OK, I found the statement about the preceeding non-witespace tokens but,
> > still, I would think that something that breaks the kernel compile should be
> > important no matter how trivial to work-around it is...
> 
> The question is whether it should be fixed in the compiler, or in the
> kernel.
Since the 3.x+ preprocessors don't exhibit this bug, I would rather say that
in the compiler. Also, the requirement of putting the spaces around the
comma is somewhat troublesome, counter-intuitive and not really justified by
anything, IMHO... Adding (or not) spaces should be a matter of style and not
syntax - since the C syntax doesn't require the spaces, the preprocessor
requirement is the more unexpected by a C/C++ programmer.

regards,

marek

Attachment: pgpczvt0lnq6p.pgp
Description: PGP signature


Reply to: