This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71065] Missing diagnostic for statements between OpenMP 'target' and 'teams'
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Aug 2016 13:17:43 +0000
- Subject: [Bug middle-end/71065] Missing diagnostic for statements between OpenMP 'target' and 'teams'
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-71065-4@http.gcc.gnu.org/bugzilla/>
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.