[llvm-bugs] [Bug 40191] New: Can 'omp cancel parallel' really be not directly nested within 'omp parallel'?

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 31 03:05:11 PST 2018


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: unassignedclangbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181231/ffce4304/attachment.html>


More information about the llvm-bugs mailing list