================
@@ -3286,6 +3287,10 @@ Decl *TemplateDeclInstantiator::VisitCXXMethodDecl(
TrailingRequiresClause);
Method->setRangeEnd(Constructor->getEndLoc());
} else if (CXXDestructorDecl *Destructor = dyn_cast<CXXDestructorDecl>(D)) {
+ if (NameInfo.getName().getNameKind() !=
+ DeclarationName::NameKind::CXXDestructorName)
+ return nullptr;
----------------
skadewdl3 wrote:
@zyn0217 I've moved the check to after template instantiation to signify the
intent better.
https://github.com/llvm/llvm-project/pull/210610
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits