[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 08:00:45 PDT 2024
================
@@ -1398,5 +1807,30 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl *Template,
->getTemplatedDecl())
->setDeductionCandidateKind(DeductionCandidate::Copy);
+ CXXRecordDecl *TemplatedDecl = Pattern->getTemplatedDecl();
+ if (getLangOpts().CPlusPlus23 && TemplatedDecl->hasDefinition()) {
----------------
cor3ntin wrote:
Is that something we should support in C++20 as an extension?
https://github.com/llvm/llvm-project/pull/98788
More information about the cfe-commits
mailing list