[clang] Bugfix for chosing the correct deduction guide (PR #66487)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 2 07:00:01 PDT 2023
================
@@ -2129,7 +2129,7 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(
Function = CXXDeductionGuideDecl::Create(
SemaRef.Context, DC, D->getInnerLocStart(),
InstantiatedExplicitSpecifier, NameInfo, T, TInfo,
- D->getSourceRange().getEnd(), /*Ctor=*/nullptr,
+ D->getSourceRange().getEnd(), DGuide->getCorrespondingConstructor(),
----------------
erichkeane wrote:
I don't believe this will, we're not deleting the deduction guide.
https://github.com/llvm/llvm-project/pull/66487
More information about the cfe-commits
mailing list