[Issue 6001] Assertion failure: '....' on line 2680 in file 'interpret.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 14 10:48:10 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6001
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kennytm at gmail.com
--- Comment #1 from kennytm at gmail.com 2011-05-14 10:44:04 PDT ---
Reduced test case:
-----------------------
void e(ref int[] s) { // must pass by ref or out
int[] r = s; // must alias that parameter
s ~= 0; // must mutate 's' or 'r'
}
bool f() {
int[] s;
e(s);
return false;
}
enum g = f();
-----------------------
Assertion failed: ((newval->op == TOKarrayliteral || newval->op ==
TOKassocarrayliteral || newval->op == TOKstring || newval->op == TOKslice ||
newval->op == TOKnull)), function interpretAssignCommon, file interpret.c, line
2680.
Abort trap
-----------------------
--
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