https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578
FeRD <ferdnyc at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ferdnyc at gmail dot com --- Comment #7 from FeRD <ferdnyc at gmail dot com> --- (In reply to Eric Gallager from comment #5) > We should probably > choose one of the bugs in this web of related bugs and choose one to use as > the base bug and mark the rest as duplicates, but idk which one... If you're taking votes from the "peanut gallery", I vote this one, as it's the only one that even hints at a poorly-disseminated fact: That -no-integrated-cpp serves as an easy workaround for this issue on affected versions, at the slight expense of some additional compile time. In our own CMake project, we've added the following config, to great effect: #### Work around a GCC < 9 bug with handling of _Pragma() in macros #### See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55578 if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.0.0")) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-integrated-cpp") endif()