| | | | --- | --- | | Bugzilla Link | [50560](https://llvm.org/bz50560) | | Version | 12.0 | | OS | Linux | | Attachments | [files generated during crash + console log + command line + original source](https://user-images.githubusercontent.com/92601482/143762179-1724a2a3-10bc-4a80-b8a3-0b6f0e4a5b14.gz) | | CC | @zygoloid | ## Extended Description ```cpp // 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; } ```