https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694
--- Comment #7 from sandra at gcc dot gnu.org --- Hmmm, that is helpful. Which pass is it that depends on the strict nesting of "omp teams" within "omp target" for code generation? Is that also in omp-low (where the nesting error is diagnosed) or some later pass?