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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits