http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #6 from bearophile_h...@eml.cc 2012-07-15 04:15:20 PDT ---
The two problems of the example seems fixed. Now this program:
void main() {
const int[] a = new int[5];
int[] b = new int[5];
b[] += a[];
}
Gives:
http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #7 from yebblies yebbl...@gmail.com 2012-07-15 23:05:17 EST ---
(In reply to comment #6)
The two problems of the example seems fixed. Now this program:
void main() {
const int[] a = new int[5];
int[] b = new int[5];
http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #8 from yebblies yebbl...@gmail.com 2012-07-15 23:24:37 EST ---
Ok, not really my mistake, but a problem with typeMerge or the use of typeMerge
in BinAssignExp::semantic. It doesn't make any sense for a BinAssignExp or a
http://d.puremagic.com/issues/show_bug.cgi?id=4662
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
/e917e1e404f8dc6b3440788d40fcf936c51bdf57
Fix Issue 4662 - Array ops on const arrays
For BinAssignExp, check that the lhs is assignable or mutable.
https://github.com/D-Programming-Language/dmd/commit/738114f00b12726a14fb4a65abe825957f82875d
Merge pull request #648 from yebblies/issue4662
Issue 4662 - Array ops on const arrays
http://d.puremagic.com/issues/show_bug.cgi?id=4662
--- Comment #5 from Kenji Hara k.hara...@gmail.com 2012-07-14 08:11:15 PDT ---
Additional fix for yebblies's patch:
https://github.com/D-Programming-Language/dmd/pull/1046
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=4662
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||patch
--- Comment #3
http://d.puremagic.com/issues/show_bug.cgi?id=4662
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||dsim...@yahoo.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=4662
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||accepts-invalid