http://d.puremagic.com/issues/show_bug.cgi?id=9577
Summary: Crash on static array of function literals
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from argc <[email protected]> 2013-02-23 06:59:14 PST ---
//DMD32 D Compiler v2.062 just crash on this without any messages:
import std.stdio;
int foo(int i)
{
static int function (int)[] bar =
[
function int(int j){return j+1;},
function int(int j){return j+2;}
];
return bar[i](i);
}
void main(string[] args)
{
writeln(foo(1));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------