February 23, 2013 [Issue 9577] New: Crash on static array of function literals | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: argcc@ya.ru --- Comment #0 from argc <argcc@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: ------- |
February 23, 2013 [Issue 9577] Crash on static array of function literals | ||||
---|---|---|---|---|
| ||||
Posted in reply to argc | http://d.puremagic.com/issues/show_bug.cgi?id=9577 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc 2013-02-23 09:36:02 PST --- Simpler test case: void main() { static int function(int)[] foo = [x => x]; foo[0](0); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation