From: Douglas Gregor Date: Fri, 23 Jan 2009 22:28:29 +0000 (+0000) Subject: Fix a small regression in warning about template type parameter redeclarations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efe38bdea21953f89c1504cfd1c63bee5f15b1b6;p=clang Fix a small regression in warning about template type parameter redeclarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62886 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 86992b5dd5..8d203cc2c2 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -259,7 +259,6 @@ public: assert(0 && "Unknown decl kind!"); case OverloadedFunction: case Typedef: - case TemplateTypeParm: case EnumConstant: case Var: case CXXClassVar: @@ -285,6 +284,7 @@ public: case Record: case CXXRecord: case Enum: + case TemplateTypeParm: return IDNS_Tag; case Namespace: