CTAD: Don't reuse the template parameters of the class in the synthesized deduction guide. #102281
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
https://godbolt.org/z/ea8vzaoeP
The AST is:
Note that the
TemplateTypeParmDecl
is the same in the class template decl and deduction guide. We seem to take a shortcurt and reuse theTemplateTypeParmDecl
when synthesizing the deduction guide. Instead, we should clone one to make distinct template parameters for the deduction guide.The text was updated successfully, but these errors were encountered: