diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-08 16:41:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-08 16:41:22 +0000 |
commit | 9916a047c55ea18845d706bf95e7517b646933d0 (patch) | |
tree | a4c3c270df24956f9b8491b455c5a8738ce87a35 /lib/Sema | |
parent | 12af63bd2498c1af44b9a50eb0de5839487809d4 (diff) |
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
Diffstat (limited to 'lib/Sema')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } } } |