[Issue 22102] New: importC: Error: function is used as a type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 5 23:08:40 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22102
Issue ID: 22102
Summary: importC: Error: function is used as a type
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Reduced test:
---
void test(int *p)
{
}
int main()
{
int array[5];
test(array);
return 0;
}
---
The issue is that the parser can't disambiguate between `type(var)` the
declaration and `fncall(var)` the expression.
--
More information about the Digitalmars-d-bugs
mailing list