[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 7 13:14:01 PDT 2024


================
@@ -1388,6 +1695,33 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl *Template,
   if (!AddedAny)
     Transform.buildSimpleDeductionGuide(std::nullopt);
 
+  // FIXME: Handle explicit deduction guides from inherited constructors
----------------
hokein wrote:

I think it is clearer to move FIXME to line 1636 `if (hasDeclaredDeductionGuides(Transform.DeductionGuideName, DC))` where we perform the lookup.

https://github.com/llvm/llvm-project/pull/98788


More information about the cfe-commits mailing list