diff options
| author | 2022-08-17 07:38:48 +0200 | |
|---|---|---|
| committer | 2022-08-17 07:38:48 +0200 | |
| commit | 585e51cac05cbb4fbc54ae3381bea4f41320ff5d (patch) | |
| tree | bc456bc650f5828e6058131ece28e726509b9caa /bootstrap | |
| parent | c50a02ec703c7c1c5f6823c8cbd07a424d604792 (diff) | |
let
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/parse.c b/bootstrap/parse.c index c76445f..efcf0b2 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -875,7 +875,7 @@ islvalue(const struct expr *ex) { return 1; if (ex->t == Eprefix && ex->unop.op == '*') return 1; - if (ex->t == Eindex || ex->t == Eget) + if (ex->t == Eindex || ex->t == Eget || ex->t == Eeutag) return 1; if (ex->t == Eini) return 1; @@ -1444,7 +1444,7 @@ pexpostfix(struct parser *P) { if ((exptr = ty->t == TYptr)) ty = ty->child; - if (ty->t == TYstruct || ty->t == TYunion) { + if (ty->t == TYstruct || ty->t == TYunion || ty->t == TYeunion) { struct decl *decl = findaggdecl(unconstify(ty), fnam); if (!decl) fatal(P, tok.span, "%t has no such method `%s'", ty, fnam); |