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: unassignedclangb...@nondot.org
          Reporter: jas...@jawset.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to