[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 21:28:01 PST 2024
================
@@ -936,19 +940,21 @@ Expr *buildIsDeducibleConstraint(Sema &SemaRef,
Context.DeclarationNames.getCXXDeductionGuideName(AliasTemplate));
};
+ TemplateDecl *TD = DeducingTemplate ? DeducingTemplate : AliasTemplate;
+
SmallVector<TypeSourceInfo *> IsDeducibleTypeTraitArgs = {
Context.getTrivialTypeSourceInfo(
Context.getDeducedTemplateSpecializationType(
- TemplateName(AliasTemplate), /*DeducedType=*/QualType(),
+ TemplateName(TD), /*DeducedType=*/QualType(),
----------------
antangelo wrote:
I believe I forgot to acknowledge this comment. I am skipping the construction of the deducible constraint as of [0245459](https://github.com/llvm/llvm-project/pull/98788/commits/024545921b5ac4c8e9fa4781b492cf719877cb05)
https://github.com/llvm/llvm-project/pull/98788
More information about the cfe-commits
mailing list