cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 090e2932ce7d7c63d2a382213657903fcffb1b9b
parent d889bc80be5a2389240a24b30873138a54991e10
Author: Michael Forney <mforney@mforney.org>
Date:   Thu, 30 Jan 2020 01:08:26 -0800

expr: String literals have complete type

Diffstat:
Mexpr.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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: