https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723

--- Comment #20 from Dodji Seketeli <dodji at gcc dot gnu.org> ---
> In a function-like macro expansion, regular tokens are line-marked as being
> expanded at the opening parenthesis, while builtins are line-marked as being
> expanded at the closing parenthesis (both of these choices are reasonable,
> though the inconsistency is probably a design flaw).

As noted in discussions we had on the mailing list at
https://gcc.gnu.org/ml/gcc-patches/2014-07/msg01080.html, I think the fact that
tokens resulting from the expansion of a built-in macro have their location set
to the closing parenthesis of the invocation of the enclosing function-like
macro is a separate issue that needs to be dealt with.

I have thus filed PR61817 to track this.

Thanks.

Reply via email to