https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71065
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note that according to the omp-lang discussions #pragma omp target {{{{{ #pragma omp teams { ... } }}}}} is fine, while even #pragma omp target { {} #pragma omp teams { ... } } (or ; etc., before or after teams, is invalid). Whether #pragma omp target { label: #pragma omp teams { ... } } is valid or not is unclear.