[Bug middle-end/71065] Missing diagnostic for statements between OpenMP 'target' and 'teams'

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 19 13:17:00 GMT 2016


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.


More information about the Gcc-bugs mailing list