================
@@ -1172,7 +1172,8 @@ static bool isTrivialForMSVC(const CXXRecordDecl *RD,
QualType Ty,
if (Ctor->isUserProvided())
return false;
} else if (auto *Template = dyn_cast<FunctionTemplateDecl>(D)) {
- if (isa<CXXConstructorDecl>(Template->getTemplatedDecl()))
+ if (isa<CXXConstructorDecl>(Template->getTemplatedDecl()) &&
+ !Template->getTemplatedDecl()->isDeleted())
----------------
cor3ntin wrote:
yup, i think they do the dance for you of peeling off the FunctionTemplateDecl
layer
https://github.com/llvm/llvm-project/pull/237634
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits