Issue 63438
Summary Crash with C++ lambda with variably modified argument returned from another lambda
Labels new issue
Assignees
Reporter efriedma-quic
    Testcase:

```
int size_tab(void);
int main(void) {
    auto tab = ([]()->int(*)[size_tab()] { return 0; })();
    ([](decltype(tab) arr)-> int { return sizeof(*arr); })(0);
}
```

>From the AST, it looks like the second lambda fails to capture the size of the array.  Not sure if this is something we want to accept, but we shouldn't crash.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to