[Issue 10212] New: Segfault using wrong delegate literal syntax, wrong error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 30 02:35:30 PDT 2013
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: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list