================ @@ -892,6 +892,11 @@ namespace lambdas { return a1.x; }); A a2([&] { return a2.x; }); // ok + A a3([=] { return a3.x; }()); // expected-warning{{variable 'a3' is uninitialized when used within its own initialization}} ---------------- shafik wrote:
Do we now also catch this case: https://godbolt.org/z/bnYEqhqY9 https://github.com/llvm/llvm-project/pull/129198 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits