https://bugs.llvm.org/show_bug.cgi?id=40191
Bug ID: 40191
Summary: Can 'omp cancel parallel' really be not directly
nested within 'omp parallel'?
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangb...@nondot.org
Reporter: lebedev...@gmail.com
CC: llvm-bugs@lists.llvm.org
void calle() {
#pragma omp cancel parallel
}
void caller() {
#pragma omp parallel
calle();
}
https://godbolt.org/z/_zYl80
^ gcc "error: orphaned '#pragma omp cancel' construct"
clang says it's ok
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs