[Issue 13879] New: Default inizialization of function pointers array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 19 18:04:17 PST 2014
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 at puremagic.com
Reporter: bearophile_hugs at 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
--
More information about the Digitalmars-d-bugs
mailing list