================
@@ -1389,7 +1389,11 @@ bool CXXRecordDecl::isLiteral() const {
: hasTrivialDestructor()))
return false;
- if (isLambda() && !LangOpts.CPlusPlus17)
+ // Lambdas are literal types since C++17.
----------------
erichkeane wrote:
So why is `isAggregate` or `hasConstexprNonCopyMoveConstructor`/etc not just
`return true` here? Am I missing something?
https://github.com/llvm/llvm-project/pull/78195
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits