================ @@ -2974,7 +2974,7 @@ void DeclareImplicitDeductionGuidesForTypeAlias( if (auto *FPrime = SemaRef.InstantiateFunctionDeclaration( F, TemplateArgListForBuildingFPrime, AliasTemplate->getLocation(), Sema::CodeSynthesisContext::BuildingDeductionGuides)) { - auto *GG = dyn_cast<CXXDeductionGuideDecl>(FPrime); + auto *GG = cast<CXXDeductionGuideDecl>(FPrime); ---------------- tahonermann wrote:
I think this looks fine too. It is not trivial to ensure, but seems reasonable. https://github.com/llvm/llvm-project/pull/86759 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits