[clang] [C++20][Modules] Fix crash when function and lambda inside loaded from different modules (PR #109167)

Dmitry Polukhin via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 4 10:59:11 PDT 2024


dmpolukhin wrote:

> this has also caused the following issue to pop up in our modules build
> 
> ```
> error: variable 'param' cannot be implicitly captured in a lambda with no capture-default specified
> ```
> 
> hopefully the error provides some guidance for where to look, but I can try to get a reduced repro

Please create a reproducer without it is not possible to debug and fix. On a build without asserts my original example gives the same error. It means that there are cases when some lambda is not deserialized early enough.

https://github.com/llvm/llvm-project/pull/109167


More information about the cfe-commits mailing list