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: Varargs macros subtly broken


Jamie Lokier wrote:-

> *boggle* you mean this is broken even without varargs?  Ouch!

No, only in the varargs case.

> Lots of my programs use function-like macros in this way, for the most
> basic things like hash tables and sorting functions.
> E.g. "FAST_MERGE_SORT (a, b, STRCMP_LIKE_COMPARISON_MACRO)".
> 
> I'll have to see if they still compile.  Oh, they do.  What am I missing
> from the above explanation?

Just that the normal case is taken care of <g>.

Neil.

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