[Issue 4414] [ICE] Taking item of static array returned by function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 29 19:52:15 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4414
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-08-29 19:52:03 PDT ---
This passes:
import std.stdio : writeln;
int[1] foo()
{
return [0];
}
void main()
{
int x = foo()[0];
writeln(typeid(x)); // writes int
//~ writeln(x);
}
But if I uncomment the last line then I get a different error:
Internal error: ..\ztc\cod2.c 4494
--
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