[Issue 9577] New: Crash on static array of function literals
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Feb 23 06:59:16 PST 2013
    
    
  
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: nobody at puremagic.com
        ReportedBy: argcc at ya.ru
--- Comment #0 from argc <argcc at ya.ru> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list