[clang] [clang] CTAD: fix the aggregate deduction guide for alias templates. (PR #90894)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 06:38:18 PDT 2024
================
@@ -2803,7 +2803,207 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef, TypeAliasTemplateDecl *AliasTemplate) {
return {Template, AliasRhsTemplateArgs};
}
-// Build deduction guides for a type alias template.
+// Build deduction guides for a type alias template from the given underlying
+// deduction guide F.
+FunctionTemplateDecl *
+BuildDeductionGuideForTypeAlias(Sema &SemaRef,
----------------
hokein wrote:
> to clarify, in the actual fix you removed a whole bunch of code?
https://github.com/llvm/llvm-project/commit/621899224aa7d59ab70675f6ff32b298b06a515a
Yes, that's correct. The removed code is an incorrect implementation which will generate wrong deduction guides.
https://github.com/llvm/llvm-project/pull/90894
More information about the cfe-commits
mailing list