Set the expression type to the correct value for addresses.

This commit is contained in:
Bill Currie 2011-01-11 12:06:40 +09:00
parent 21d7c78eb7
commit ad787ae98a

View file

@ -2490,7 +2490,7 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
if (e1->e.expr.op == '.') {
e = e1->e.expr.e1;
if (e->type == ex_expr && e->e.expr.op == '.') {
e->e.expr.type = e->e.expr.type;
e->e.expr.type = pointer_type (e->e.expr.type);
e->e.expr.op = '&';
}
break;