[Issue 3665] Regression(1.051, 2.036) Assignment with array slicing does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 13 01:01:24 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3665
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-09-13 01:00:54 PDT ---
This is very simple: in arrayop.c, the assignment operators have been left out
of the lists of valid operations.
PATCH:
bool isArrayOpValid(Expression *e), line 54.
case TOKand:
case TOKor:
case TOKpow:
case TOKand:
case TOKor:
case TOKpow:
+ case TOKassign:
+ case TOKaddass:
+ case TOKminass:
+ case TOKmulass:
+ case TOKdivass:
+ case TOKmodass:
+ case TOKxorass:
+ case TOKandass:
+ case TOKorass:
+ case TOKpowass:
return isArrayOpValid(((BinExp *)e)->e1) &&
isArrayOpValid(((BinExp *)e)->e2);
And again in isArrayOperand(), line 600
case TOKand:
case TOKor:
+ case TOKpow:
+ case TOKassign:
+ case TOKaddass:
+ case TOKminass:
+ case TOKmulass:
+ case TOKdivass:
+ case TOKmodass:
+ case TOKxorass:
+ case TOKandass:
+ case TOKorass:
+ case TOKpowass:
case TOKneg:
case TOKtilde:
return 1;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list