[Bug preprocessor/123325] incorrect __VA_OPT__ handling

luigighiron at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Apr 19 20:33:55 GMT 2026


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

Halalaluyafail3 <luigighiron at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luigighiron at gmail dot com

--- Comment #2 from Halalaluyafail3 <luigighiron at gmail dot com> ---
This is also observable with __COUNTER__:

#define F(X,...)__VA_OPT__(X)
F(__COUNTER__)
__COUNTER__

With Clang and MSVC this becomes zero, with GCC it becomes one.


More information about the Gcc-bugs mailing list