December 20, 2014 [Issue 13879] New: Default inizialization of function pointers array | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation