Issue 149477
Summary [lldb][import-std-module] Clang parser assertion when using lambda is imported from std module
Labels lldb
Assignees
Reporter Michael137
    This is a follow-up to https://github.com/llvm/llvm-project/pull/149390

https://github.com/llvm/llvm-project/pull/147389 introduced code in the `fstream` header that was using a function local lambda. This caused following `import-std-module` tests to fail:
```
16:22:51  ********************
16:22:51  Unresolved Tests (2):
16:22:51    lldb-api :: commands/_expression_/import-std-module/list-dbg-info-content/TestDbgInfoContentListFromStdModule.py
16:22:51 lldb-api :: commands/_expression_/import-std-module/list/TestListFromStdModule.py
```
with following assertion:
```
Assertion failed: (capture_size() == Class->capture_size() && "Wrong number of captures"), function LambdaExpr, file ExprCXX.cpp, line 1277.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
```

For now this was worked around by moving the lambda into a helper method. But we should really fix the underlying issue so libc++ is free to use whatever idioms they want to.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to