[llvm-bugs] [Bug 41750] New: [OpenMP] Cryptic diagnostics for bad data sharing clauses

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 5 05:54:26 PDT 2019


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

            Bug ID: 41750
           Summary: [OpenMP] Cryptic diagnostics for bad data sharing
                    clauses
           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

E.g. (-fopenmp) https://godbolt.org/z/5RRrVi

#include <map>
#include <memory>

void sink(const std::unique_ptr<int>&);

void test(std::map<int, std::unique_ptr<int>> map) {
#pragma omp parallel default(none) firstprivate(map)
    sink(map.begin()->second);
}

Results in a lot of error output about "'unique_ptr' has been explicitly marked
deleted here", but not a single mention of where the problem originates.
It should point to "firstprivate(map)", else it's rather hard to track down the
issue..

-- 
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/20190505/525378b7/attachment-0001.html>


More information about the llvm-bugs mailing list