https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91517
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- It works properly if you use -fopenmp during preprocessing (or compilation). Without -fopenmp, the pragmas aren't recognized. In your use case, are you preprocessing separately without -fopenmp and then compiling with -fopenmp? If so, why?