diff options
Diffstat (limited to 'bootstrap/parse.c')
| -rw-r--r-- | bootstrap/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c index b18c169..ace9e68 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -1125,7 +1125,7 @@ pexpostfix(struct parser *P) { ex.get.lhs = exprdup(ex); ex.t = Eget; ex.span = tok.span; - ex.ty = fld->ty; + ex.ty = ex.ty->konst ? constify(fld->ty) : fld->ty; ex.get.fld = fnam; } else { fatal(P, tok.span, "cannot access `%s': left-hand-side is not an aggregate (%t)", |