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: unassignedclangb...@nondot.org
Reporter: thierry.carr...@cea.fr
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs