[clang] [clang] Improved diagnostics for explicit specialization/instantiation of closure type members (PR #192843)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 21 06:41:55 PDT 2026
================
@@ -8949,7 +8949,9 @@ let CategoryName = "Lambda Issue" in {
"generic lambdas are incompatible with C++11">,
InGroup<CXXPre14Compat>, DefaultIgnore;
def err_lambda_explicit_spec : Error<
- "lambda call operator should not be explicitly specialized or instantiated">;
+ "a member of a lambda should not be explicitly specialized">;
+ def err_lambda_explicit_inst : Error<
+ "a member of a lambda should not be explicitly instantiated">;
----------------
StefanPaulet wrote:
Merged them into `err_lambda_explicit_temp_spec`
https://github.com/llvm/llvm-project/pull/192843
More information about the cfe-commits
mailing list