[Bug preprocessor/94535] __LINE__ value changed for function-like macro invocations spanning multiple lines

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 8 20:48:31 GMT 2020


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>There is no multiline "macro function" here, there is an invocation of a macro, and the invocation spans multiple lines. 

I miss-remembered the issue, the issue was only with preprocessor directives
inside macro functions (this changed in GCC 3.3 and above really).

But I still think both line #s are correct.  is the line at the opening of the
macro function or the closing?


More information about the Gcc-bugs mailing list