Varargs macros subtly broken
Neil Booth
NeilB@earthling.net
Tue Sep 26 23:18:00 GMT 2000
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.
More information about the Gcc-bugs
mailing list