[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)
    Haojian Wu via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Sep 30 05:01:47 PDT 2024
    
    
  
================
@@ -1216,10 +1328,280 @@ void DeclareImplicitDeductionGuidesForTypeAlias(
             ->getDeductionCandidateKind() == DeductionCandidate::Aggregate)
       continue;
 
-    BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc);
+    BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc,
+                                    FromInheritedCtor);
   }
 }
 
+// Check if a template is deducible as per [dcl.type.simple]p3
----------------
hokein wrote:
I’m curious if we already have similar functionality in clang/Sema. It seems like we should, but I wasn’t able to find it. @mizvekov, do you know where it is?
https://github.com/llvm/llvm-project/pull/98788
    
    
More information about the cfe-commits
mailing list