http://d.puremagic.com/issues/show_bug.cgi?id=10212
Summary: Segfault using wrong delegate literal syntax, wrong
error message
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-05-30 02:35:29
PDT ---
int delegate() foo() {
return () => {
return 1;
};
}
void main() {
}
-----
main.d(2): Error: mismatched function return type inference of int function()
pure nothrow @safe and int
Segmentation fault (core dumped)
-----
Also the return type of foo is not int, it is int delegate().
Doesn't segfault using GDC/LDC 2.060 on dpaste.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------