From: Chris Lattner Date: Wed, 12 Nov 2008 19:45:49 +0000 (+0000) Subject: fix PR3048. I'm going to do some more work before closing it off and X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ab5543acfbaca11409c87efdc5154d7af21d47f;p=clang fix PR3048. I'm going to do some more work before closing it off and adding a testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index aaceb4f559..3484849161 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2536,6 +2536,7 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, } else { // FIXME: This diagnostic needs work Diag(Loc, diag::err_typecheck_illegal_vla, Loc); + T = Context.IntTy; InvalidDecl = true; } }