[llvm-bugs] [Bug 35778] New: Crash with OpenMP, SEH, /O2

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 30 08:13:37 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35778

            Bug ID: 35778
           Summary: Crash with OpenMP, SEH, /O2
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jascha at jawset.com
                CC: llvm-bugs at lists.llvm.org

// clang-cl /c /EHsc -Xclang -fopenmp /O2 %USERPROFILE%\clang_omp_except_ice.cc
extern void foo();
extern void bar();

void baz(int count) {
    #pragma omp parallel for
    for ( int i = 0; i < count; ++i ) {
        try {
            foo();
        }
        catch ( ... ) {
            #pragma omp critical
            bar();
        }
    }
}

-- 
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/20171230/aad6a05d/attachment.html>


More information about the llvm-bugs mailing list