ref: 7e3cb239304785b9a53e2e04709d34a7ad92815c
parent: 121cea8b715ba2ca3a8c5abc4b330ded023a7cf8
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Sep 4 16:19:49 EDT 2015
Call chklvalue() in address()
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -465,8 +465,7 @@
static Node *
address(char op, Node *np)
{
- if (!np->lvalue)
- error("lvalue required in unary expression");
+ chklvalue(np);
if (np->symbol && (np->sym->flags & ISREGISTER))
error("address of register variable '%s' requested", yytext);
if (np->op == OPTR) {