This is the mail archive of the gcc-bugs@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]

Re: Possible variadic macro bug


On Fri, Nov 09, 2001 at 05:07:06PM -0600, Peter Seebach wrote:
> >It's not correct C99 - C99 requires that arguments be comma separated,
> >including the "...".
> 
> Oops!  Rereading this, I see what you're saying.  I noticed the existance of
> the (...) form, and didn't think this through correctly.  Sorry!  Hmm.  I'm
> still convinced we *meant* to make this possible, though.  Ugh.
 
The syntax you thought worked conflicts with GCC's extension for giving
the variable arguments a friendly name, which is widely used, so I hope
the committee didn't mean to do that. :-)

The revised ",##__VA_ARGS__" extension in gcc 3.0 was meant to be suitable
for standardization (unlike the older version, which was awful and I'm
embarrassed it survived as long as it did).  In fact, if I knew how, I
would have written up a formal proposal already.  Perhaps you can shed
some light on the procedure?

zw


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