ref: 88fd06dac0fd4da6d9f8c8a29913c46f1ca87cda
parent: 3c23871242a42e719fb786d2cb94549d7761ca0c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Aug 10 04:31:06 EDT 2016
Revert "[cc1] Allow declaration of global array variables" This reverts commit 7cf23450ad628012dfb66d72f1796955d1b34d71.
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -745,7 +745,7 @@
/* TODO: Add warning about ANSI limits */
if (!(tp->prop & TDEFINED) &&
sclass != EXTERN && sclass != TYPEDEF &&
- (tp->op != ARY || yytoken != '=' && curctx != GLOBALCTX)) {
+ !(tp->op == ARY && yytoken == '=')) {
errorp("declared variable '%s' of incomplete type", name);
}