"size of static array must be an integer constant expression")
DIAG(err_typecheck_illegal_vla, ERROR,
"arrays with static storage duration must have constant integer length")
+DIAG(err_typecheck_field_variable_size, ERROR,
+ "fields must have a constant size")
DIAG(err_typecheck_negative_array_size, ERROR,
"array size is negative")
DIAG(warn_typecheck_function_qualifiers, WARNING,
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;
}