digitalmars.D.bugs - [Issue 15163] New: Parser bug on double function call
- via Digitalmars-d-bugs (31/31) Oct 05 2015 https://issues.dlang.org/show_bug.cgi?id=15163
https://issues.dlang.org/show_bug.cgi?id=15163 Issue ID: 15163 Summary: Parser bug on double function call Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: Hexagonalstar64 gmail.com --- void function() func(int[] arr) { return () { }; } void caller() { auto arr = [0]; func(arr[0])(); } --- $ rdmd test test.d(13): Error: function declaration without return type. (Note that constructors are always named 'this') test.d(13): Error: identifier expected for template value parameter test.d(13): Error: no identifier for declarator func(iter) Failed: ["dmd", "-v", "-o-", "test.d", "-I."] --
Oct 05 2015