[PATCH] D119609: [Clang][Sema] Don't act on ReturnStmt when parsing the lambda declarator.
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 2 12:59:57 PST 2022
erichkeane added a comment.
Another example that is... concerning: https://godbolt.org/z/84b8Yb7ne
template<typename T>
void call_lambda(T&& L) {
L();
}
int g() {
auto x = [](char c = ({return 5;'c';})){};
call_lambda(x);
return 0;
}
int main() {
return g();
}
I filed a bug against GCC for this, so we should probably see what they want to do: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104765
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119609/new/
https://reviews.llvm.org/D119609
More information about the cfe-commits
mailing list