[clang] [Clang] Implement CWG2598: Union of non-literal types (PR #78195)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 16 10:33:16 PST 2024
================
@@ -1389,7 +1389,11 @@ bool CXXRecordDecl::isLiteral() const {
: hasTrivialDestructor()))
return false;
- if (isLambda() && !LangOpts.CPlusPlus17)
+ // Lambdas are literal types since C++17.
----------------
cor3ntin wrote:
And aggregate can have non literal members
https://github.com/llvm/llvm-project/pull/78195
More information about the cfe-commits
mailing list