[clang] [clang] fix matching of nested template template parameters (PR #130447)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 9 08:50:40 PDT 2025
================
@@ -11363,14 +11363,17 @@ class Sema final : public SemaBase {
/// The context in which we are checking a template parameter list.
enum TemplateParamListContext {
- TPC_ClassTemplate,
- TPC_VarTemplate,
+ // For this context, Class, Variable, TypeAlias, and non-pack Template
+ // Template
+ // Parameters are the same.
+ TPC_Normal,
+
TPC_FunctionTemplate,
TPC_ClassTemplateMember,
TPC_FriendClassTemplate,
TPC_FriendFunctionTemplate,
TPC_FriendFunctionTemplateDefinition,
- TPC_TypeAliasTemplate
+ TPC_TemplateTemplateParameterPack
----------------
zyn0217 wrote:
nit: Can we have a trailing comma here?
https://github.com/llvm/llvm-project/pull/130447
More information about the cfe-commits
mailing list