https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
--- Comment #12 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Allan Chandler from comment #11) > Now you've done it. This was reported over three years ago and now it's > affected someone on Stack Overflow. You guys are in for it now :-) Unfortunately, the C/C++ FEs in GCC have very very few developers relative to their importance and amount work they require. There is a patch in comment #10, but it requires some additional work for which I do not have enough free time. If you or someone else has some free time to finish this work, this is how I would proceed: 1. Try to figure out why the preprocessor removes the pragmas (and not other #-directives) 2. If you cannot figure it out, ask in gcc@ with explicit CC to C/C++/libcpp maintainers (see MAINTAINERS file). 3. Complete the patch, bootstrap®ression test, add a Changelog, submit to gcc-patches and ping until it is approved. More details: https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps Otherwise, given that this hasn't been fixed in more than 4 years (see PR48914), it seems likely that active developers have higher priority things to work on and it will remain unfixed until some new volunteer steps up to the task. If/When I have a little free time to work on GCC, there are at least a couple of other bugs I would rather fix before this one.