[Issue 22912] New: importC: syntax error for function call with cast and typedef and parentheses around name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 23 06:55:20 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22912
Issue ID: 22912
Summary: importC: syntax error for function call with cast and
typedef and parentheses around name
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
typedef long my_long;
int fn1() { return 0; }
void fn2() { long x = (my_long) (fn1) (); }
Error: function expected before `()`, not `cast(long)& fn1` of type `long`
--
More information about the Digitalmars-d-bugs
mailing list