From 585e51cac05cbb4fbc54ae3381bea4f41320ff5d Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 17 Aug 2022 07:38:48 +0200 Subject: let --- bootstrap/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstrap') 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); -- cgit v1.2.3