[Issue 15163] New: Parser bug on double function call
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Oct 5 13:15:08 PDT 2015
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 at puremagic.com
Reporter: Hexagonalstar64 at 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."]
--
More information about the Digitalmars-d-bugs
mailing list