https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90400
Pekka S <p...@gcc-bugzilla.mail.kapsi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |p...@gcc-bugzilla.mail.kaps | |i.fi --- Comment #3 from Pekka S <p...@gcc-bugzilla.mail.kapsi.fi> --- Created attachment 46384 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46384&action=edit _Pragma tests These all yield different results, the first two won't compile but fail on different lines, which is a bit strange, as the preprocessor output doesn't appear to change (e.g. if only doing -E). The last one compiles, but obviously just because it omits the pragmas. GCC10 and GCC7 behave both the same with this test setup, so I suspect this is a long standing feature and/or issue. gcc -Wall -Wextra -c pragma.c gcc -Wall -Wextra -save-temps -c pragma.c gcc -Wall -Wextra -save-temps -DNOPRAGMA -c pragma.c