ref: 845cfbbd4b4544abcd91b4dc733185a362b2c7f7
parent: e5e6cd22621169df9a8cc696500c64de3740b835
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Nov 4 03:20:49 EDT 2021
cc1: Mark casts as no lvalue A cast operation makes an expression that is not anymore a lvalue, because a cast modifies a value, becoming a rhs.
--- a/src/cmd/cc/cc1/expr.c
+++ b/src/cmd/cc/cc1/expr.c
@@ -914,7 +914,6 @@
if ((rp = convert(lp, tp, 1)) == NULL)
error("bad type conversion requested");
rp->flags &= ~NLVAL;
- rp->flags |= lp->flags & NLVAL;
}
break;
default: