HighCommander4 wrote: > For this specific case, where a static lambda captures a local variable, I > think we could enhance Clang to detect this kind of use-after-free bug.
Yep, good idea. I filed https://github.com/llvm/llvm-project/issues/111316 about this. https://github.com/llvm/llvm-project/pull/111282 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits