commit f9cdc46db899fe46d161837535601c242f1fb8a7
parent b2262ab68260d61dc1ee558531219e81273bd15f
Author: m21c <ho*******@gmail.com>
Date: Mon, 22 Jun 2026 21:29:04 +0200
array subscription is now lvalue
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/compiler.c b/compiler.c
@@ -4203,6 +4203,11 @@ islvalue(Node *node)
case TERRTYPE: /* avoiding error-reporting on error-type */
return true;
+ /* @note for &array[i] */
+ case OARRAY:
+ /* @todo evaluate target */
+ return true;
+
case ACOMMA:
return islvalue(node->lhs) && islvalue(node->rhs);