[llvm-bugs] [Bug 50560] New: lambda implicit copy capture triggered from within an OpenMP critical section crashes
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 2 05:49:05 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50560
Bug ID: 50560
Summary: lambda implicit copy capture triggered from within an
OpenMP critical section crashes
Product: clang
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++17
Assignee: unassignedclangbugs at nondot.org
Reporter: thierry.carrard at cea.fr
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 24902
--> https://bugs.llvm.org/attachment.cgi?id=24902&action=edit
files generated during crash + console log + command line + original source
// the following code crashes clang (llvm project 12.0.0)
int main()
{
for(int i=0;i<3;i++)
{
auto mylambda = [=](int& x)
{
# pragma omp critical
x+=i;
};
mylambda(i);
}
return 0;
}
--
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/20210602/222e1d8a/attachment-0001.html>
More information about the llvm-bugs
mailing list