[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:57:22 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94535
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Why not do this:
static_assert(X == 3 || X == 4);
There that works for both cases.
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Why not do this:
static_assert(X == 3 || X == 4);
There that works for both cases.
More information about the Gcc-bugs
mailing list