From 7135b43053b3edec3a2c0e3b3f2674581a599995 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 1 Dec 2025 18:22:35 +0100 Subject: c: edgecase for redeclaration of implicit sized array --- c/c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3