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

alisdairm at me dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 8 21:20:32 GMT 2020


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

--- Comment #9 from Alisdair Meredith <alisdairm at me dot com> ---
(In reply to Martin Sebor from comment #7)
> The following proposal was accepted into C2X last year:
>   http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2322.htm
> It seems to me like it's about the same thing but I just skimmed it.

Thanks - that is a good reference, and it looks that gcc9 is implementing the
new recommended best practice.  Does anyone active in SG14 know if existing
practice was surveyed before making this recommendation?  My testing has been
limited to C++ compilers, and I believe there are a wider range of C vendors
that may be relevant than my little survey had access to.


More information about the Gcc-bugs mailing list