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
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 1a85bf4..bf29bdf 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -2541,8 +2541,7 @@
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;
}