[clang] Improve error message for invalid lambda captures (PR #94865)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 14:50:18 PDT 2024
================
@@ -622,6 +622,8 @@ Improvements to Clang's diagnostics
- Clang no longer emits a "declared here" note for a builtin function that has no declaration in source.
Fixes #GH93369.
+- Clang now has an improved error message when trying to capture a variable for lambda function expressions.
----------------
Sirraide wrote:
This should be more descriptive, i.e. I’d mention that this is specifically about the case of trying to capture a class member.
https://github.com/llvm/llvm-project/pull/94865
More information about the cfe-commits
mailing list