[clang] Fix error recovery while PTU cleanup (PR #127467)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 17 02:08:48 PST 2025


anutosh491 wrote:

Should be fixed now 
```
clang-repl> int x = 5; auto capture = [&]() { return x * 2; };
In file included from <<< inputs >>>:1:
input_line_1:1:28: error: non-local lambda expression cannot have a capture-default
    1 | int x = 5; auto capture = [&]() { return x * 2; };
      |                            ^
error: Parsing failed.
```

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


More information about the cfe-commits mailing list