[PATCH] D26108: Add -Wnullability-completeness-on-arrays.
Jordan Rose via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 9 17:21:46 PST 2016
jordan_rose added inline comments.
================
Comment at: lib/Sema/SemaType.cpp:3988
// Allow arrays of auto if we are a generic lambda parameter.
// i.e. [](auto (&array)[5]) { return array[0]; }; OK
if (AT && D.getContext() != Declarator::LambdaExprParameterContext) {
----------------
ahatanak wrote:
> This isn't something that is related to the changes made in this patch, but it looks like we issue a -Wnullability-completeness warning when there is a generic lambda like this:
>
> ```
> auto G2 = [](auto a){};
> ```
>
> Is this expected?
It's not desired, but it's not a regression either. D26226 mentions how this comes up with explicit templates, so it doesn't surprise me that it happens with generic lambdas too.
Repository:
rL LLVM
https://reviews.llvm.org/D26108
More information about the cfe-commits
mailing list