This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]