Initialize storage class even if we got an erroneous mutable

llvm-svn: 60377
This commit is contained in:
Douglas Gregor 2008-12-01 22:46:22 +00:00
parent b2f131a4ab
commit b690cbb928
1 changed files with 1 additions and 0 deletions

View File

@ -1162,6 +1162,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl) {
// an error here
Diag(D.getIdentifierLoc(), diag::err_mutable_nonmember);
InvalidDecl = true;
SC = VarDecl::None;
break;
}