Issue 61596
Summary Clang crash with "The current call operator must be synchronized with Sema's CurContext"' failed"
Labels new issue
Assignees
Reporter alinas
    Crashing on the below repro with:
`clang/lib/Sema/SemaExprCXX.cpp:8277: void CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures(clang::Expr *const, clang::sema::LambdaScopeInfo *const, clang::Sema &): Assertion `CurrentLSI->CallOperator == DC && "The current call operator must be synchronized with Sema's CurContext"' failed.`

```
template <int>
using d = int;
template <typename>
int f() {
  constexpr int g = 42;
  [&] { [&](d<g>) {}; };
}
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to