tra added a comment. This patch does not appear to fix the second regression introduced by the D102237 <https://reviews.llvm.org/D102237>.
Trying to compile the following code triggers an assertion in CGExpr.cpp: class a { public: a(char *); }; void b() { [](char *c) { static a d(c); d; }; } With assertions disabled it eventually leads to a different error: `Module has a nontrivial global ctor, which NVPTX does not support.` https://godbolt.org/z/sYE1dKr1W CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102801/new/ https://reviews.llvm.org/D102801 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits