[Bug preprocessor/69665] Internal error on #pragma push_macro("__FILE__")
daniel at hebirobotics dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 1 13:56:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69665
Daniel Wright <daniel at hebirobotics dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel at hebirobotics dot com
--- Comment #3 from Daniel Wright <daniel at hebirobotics dot com> ---
I am having this same issue but with `_Pragma push_macro("__LINE__")`
Here is an example piece of code which fails on GCC (I've tested any version
from 5.2 up to the current trunk (9.0.0)):
https://gcc.godbolt.org/z/v_fM_V
While this is probably UB per any ISO C++ standard, all other major compilers
will compile the code, so I don't see why GCC shouldn't as well.
More information about the Gcc-bugs
mailing list