https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108382
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org Last reconfirmed| |2023-01-20 Status|UNCONFIRMED |NEW Target Milestone|--- |12.4 Summary|Incorrect parsing when acc |[12/13 Regression] |and omp coexist and |Incorrect parsing when acc |-fopenmp -fopenacc is used. |and omp coexist and | |-fopenmp -fopenacc is used. Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- It seems as if for !$acc enter & !$acc data !$omp flush & !$omp RELEASE a flag is wrong after parsing the second line; I think either the 'openacc_flag' needs to be (re)set to 0 or continue_flag needs to be set to 0. (likewise for swapping omp and acc lines) Possibly be caused by the following commit as it works with GCC 11 but fails with GCC 12: r12-1216-g4facf2bf5b7b32f444da864306b5c11e14c15bcf