[Issue 4414] ICE(cgcs.c) Taking item of static array returned by function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 16 03:42:35 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4414
Per Ångström <d-bugzilla at autark.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |d-bugzilla at autark.se
--- Comment #4 from Per Ångström <d-bugzilla at autark.se> 2010-11-16 03:41:16 PST ---
(Digital Mars D Compiler v2.050)
I have a variation on this theme:
int f(lazy int[2] iarr) {
return iarr[1];
}
void main() {
int[2] iarr;
f(iarr);
}
Internal error: ../ztc/cgcs.c 359
It works if I remove the lazy keyword. Of course, lazy is quite meaningless in
this context, but anyhow.
--
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