From: Douglas Gregor Date: Mon, 1 Dec 2008 22:46:22 +0000 (+0000) Subject: Initialize storage class even if we got an erroneous mutable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e89b02823a3ab1a5a282922ac9b014e226dca2ab;p=clang Initialize storage class even if we got an erroneous mutable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60377 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 22048df018..65abc36cb0 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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; }