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: [email protected]
Reporter: [email protected]
---
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."]
--