summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/romcc/romcc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index b961d66c32..f00f93f326 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -13473,6 +13473,10 @@ static struct triple *do_decl(struct compile_state *state,
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
error(state, 0, "Function prototypes not supported");
}
+ if (ident &&
+ ((type->type & TYPE_MASK) == TYPE_ARRAY) &&
+ ((type->type & STOR_MASK) != STOR_STATIC))
+ error(state, 0, "non static arrays not supported");
if (ident &&
((type->type & STOR_MASK) == STOR_STATIC) &&
((type->type & QUAL_CONST) == 0)) {