Author: Roberto E. Vargas Caballero <firstname.lastname@example.org>
Date: Thu, 13 Aug 2015 23:38:03 +0200
Set field of struct are lvalues
The lvalue flag was not set in the node when a field was implied.
We have to do some additional test here, because not all the structure
field can be a lvalue, but it is first approach.
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -607,6 +607,7 @@ field(Node *np)
error("incorrect field in struct/union");
np = node(OFIELD, sym->type, np, NULL);
+ np->lvalue = 1;
np->sym = sym;