digitalmars.D.bugs - [Issue 13879] New: Default inizialization of function pointers array
- via Digitalmars-d-bugs (23/23) Dec 19 2014 https://issues.dlang.org/show_bug.cgi?id=13879
https://issues.dlang.org/show_bug.cgi?id=13879 Issue ID: 13879 Summary: Default inizialization of function pointers array Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: bearophile_hugs eml.cc The default-inizialization of an array of function pointers has problems: void main() { bool function(int)[2] funcs1 = (int x) => true; // OK funcs1[0] = x => true; // OK bool function(int)[2] funcs2 = x => true; // Error } dmd 2.067alpha gives: test.d(4,36): Error: template lambda has no value --
Dec 19 2014