[clang] [clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (PR #68540)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 00:17:54 PDT 2023
================
@@ -2393,7 +2393,7 @@ def err_auto_not_allowed : Error<
"|in type allocated by 'new'|in K&R-style function parameter"
"|in template parameter|in friend declaration|in function prototype that is "
"not a function declaration|in requires expression parameter"
- "|in array declaration}1">;
+ "|in array declaration|in lambda parameter until C++14}1">;
----------------
cor3ntin wrote:
```suggestion
"|in array declaration|in lambda parameter before C++14}1">;
```
To be consistent with other diagnostics
https://github.com/llvm/llvm-project/pull/68540
More information about the cfe-commits
mailing list