Allow cast expressions to be lvalues.

These really need to be alias expressions rather than cast expressions
so the two can be separated as cast expressions should not be lvalues.
This commit is contained in:
Bill Currie 2011-02-13 17:54:15 +09:00
parent fa742ceed6
commit 976ff8a6bb

View file

@ -2272,6 +2272,8 @@ is_lvalue (expr_t *e)
return 1;
if (e->type == ex_uexpr && e->e.expr.op == '.')
return 1;
if (e->type == ex_uexpr && e->e.expr.op == 'C') //FIXME really need alias
return is_lvalue (e->e.expr.e1);
return 0;
}