[Issue 22233] New: importC: Error: expression expected, not `)` with parenthesized function call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 23 04:42:33 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22233

          Issue ID: 22233
           Summary: importC: Error: expression expected, not `)` with
                    parenthesized function call
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dave287091 at gmail.com

The following fails to compile:

void foo(void){}
int main(void){
    (foo)();
    return 0;
    }


foo.i(3): Error: expression expected, not `)`
foo.i(3): Error: found `;` when expecting `)`
foo.i(4): Error: found `return` when expecting `;` following statement

--


More information about the Digitalmars-d-bugs mailing list