From d081685caad61025b02426177f61fbe9b98a029b Mon Sep 17 00:00:00 2001 From: Teddy Date: Thu, 1 May 2014 01:09:56 +0800 Subject: ... --- semantics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semantics.c b/semantics.c index 9ef5f7f..285538e 100644 --- a/semantics.c +++ b/semantics.c @@ -939,7 +939,7 @@ ExpType exp_check_ref(ExpType op1, CNode *p) { ERROR((p, "lvalue required as unary '&' operand")); /* TODO: constant pointer folding */ p->ext.is_const = 0; - /* should be constant */ + /* should not be constant */ res.lval = 0; res.type = ctype_create("", CPTR, p); res.type->rec.ref = op1.type; -- cgit v1.2.3