From 9916a047c55ea18845d706bf95e7517b646933d0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 8 Oct 2009 16:41:22 +0000 Subject: Add more testing for the properties of explicit specialization. Also, eliminate a redundant diagnostic by marking a variable declared with incomplete type as an invalid declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83553 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Sema/SemaDecl.cpp') diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 9163aba9f5..fa6d623ae3 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -3454,6 +3454,8 @@ void Sema::ActOnUninitializedDecl(DeclPtrTy dcl, FinalizeVarWithDestructor(Var, InitType); } + } else { + Var->setInvalidDecl(); } } } -- cgit v1.2.3-70-g09d2