[clang] [Clang] Ensure "=default"ed function can be deleted when used as an extension in C++03 (PR #90725)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 08:18:48 PDT 2024
================
@@ -9767,7 +9767,9 @@ bool Sema::ShouldDeleteSpecialMember(CXXMethodDecl *MD,
return false;
CXXRecordDecl *RD = MD->getParent();
assert(!RD->isDependentType() && "do deletion after instantiation");
- if (!LangOpts.CPlusPlus || (!LangOpts.CPlusPlus11 && !RD->isLambda()) ||
+ if (!LangOpts.CPlusPlus ||
----------------
cor3ntin wrote:
I would try to remove it and see if tests pass (which i suspect they will)
https://github.com/llvm/llvm-project/pull/90725
More information about the cfe-commits
mailing list