Actions
Bug #10388
closedOperator precedence problem in multiple assignment (massign)
Description
I understand it wouldn't be easy to fix this, but since I happened to find it here it goes.
-
a, b = c = 1, 2
is currently taken asa, b = (c = 1), 2
; I'd expect it to be taken asa, b = (c = 1, 2)
. -
a, b = *c = 1, 2
is currently taken asa, b = *(c = 1), 2
; I'd expect it to be taken asa, b = *(c = 1, 2)
or evena, b = (*c = 1, 2)
. -
a, b = c, d = 1, 2
is currently taken asa, b = (c), (d = 1), 2
; I'd expect it to be taken asa, b = (c, d = 1, 2)
.
Should they be fixed/changed or not, issuing a warning would be greatly helpful.
Actions
Like0
Like0Like0Like0Like0