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

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`

--

Reply via email to