aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--c/c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/c.c b/c/c.c
index 5d72a5f..5dbce20 100644
--- a/c/c.c
+++ b/c/c.c
@@ -236,7 +236,7 @@ redeclarationok(const struct decl *old, const struct decl *new)
case SCEXTERN:
if (old->ty.t == TYARRAY && new->ty.t == TYARRAY
&& typechild(old->ty).bits == typechild(new->ty).bits
- && isincomplete(old->ty))
+ && (isincomplete(old->ty) || isincomplete(new->ty)))
{
return 1;
}