aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/expr.c b/expr.c
index 98f6246..8b00b67 100644
--- a/expr.c
+++ b/expr.c
@@ -450,6 +450,7 @@ primaryexpr(struct scope *s)
} while (tok.kind == TSTRINGLIT);
e->type->array.length = e->string.size + 1;
e->type->size = e->type->array.length * e->type->base->size;
+ e->type->incomplete = false;
e = decay(e);
break;
case TCHARCONST: