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: [email protected]
Reporter: [email protected]
CC: [email protected]
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs