diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-12 21:25:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-12 21:25:45 +0000 |
commit | 67027a7bc35671bc3f6d5c109720060f06303391 (patch) | |
tree | aaefb9c16d4cf87f52b99150ee350b67a2821b2d /lib | |
parent | 1367eded0ded01eacfdeaa92670d75ef8816d4d3 (diff) |
Fix a FIXME by improving a diagnostic, add a testcase for PR3048
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1a85bf4686..bf29bdf2ce 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2541,8 +2541,7 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, Diag(Loc, diag::warn_illegal_constant_array_size, Loc); T = FixedTy; } else { - // FIXME: This diagnostic needs work - Diag(Loc, diag::err_typecheck_illegal_vla, Loc); + Diag(Loc, diag::err_typecheck_field_variable_size, Loc); T = Context.IntTy; InvalidDecl = true; } |