aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-17 07:38:48 +0200
committerlemon <lsof@mailbox.org>2022-08-17 07:38:48 +0200
commit585e51cac05cbb4fbc54ae3381bea4f41320ff5d (patch)
treebc456bc650f5828e6058131ece28e726509b9caa /bootstrap
parentc50a02ec703c7c1c5f6823c8cbd07a424d604792 (diff)
let
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/parse.c4
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);