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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits