[Issue 2569] static arrays in CTFE functions don't compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 21 00:18:03 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2569
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-07-21 00:18:03 PDT ---
This isn't complicated. The only reason it doesn't work is that
BinExp::interpretAssignCommon in interpret.c doesn't deal with array assignment
AT ALL.
Adding a trivial hack like:
if (e1->op == TOKslice) {
return e2;
}
is enough to make most cases work. I'm working on a proper patch which will
deal with array literals, etc.
--
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