[llvm-bugs] [Bug 48394] New: Use of omp atomic causes a compile-time error

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 4 11:54:18 PST 2020


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

            Bug ID: 48394
           Summary: Use of omp atomic causes a compile-time error
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangbugs at nondot.org
          Reporter: a335pate at uwaterloo.ca
                CC: llvm-bugs at lists.llvm.org

Created attachment 24236
  --> https://bugs.llvm.org/attachment.cgi?id=24236&action=edit
This is an MWE that produces the relevant crash backtrace, the one that passes
is commented out.

In Clang 11.x, the attached code samples compile fine, but one causes a compile
time error in trunk. Both samples increment a variable in a taskloop with
#pragma omp atomic, but one declares the variable as shared and the other
doesn't, and the one that doesn't crashes clang (trunk).

-- 
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/20201204/bde58d64/attachment.html>


More information about the llvm-bugs mailing list