[Issue 22080] New: ImportC: Error: cannot implicitly convert expression of type 'extern(C) function' to 'function'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 23 15:30:21 UTC 2021


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

          Issue ID: 22080
           Summary: ImportC: Error: cannot implicitly convert expression
                    of type 'extern(C) function' to 'function'
           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

Seems like CParser isn't marking all function pointer types as 'extern(C)'.

Reduced test:
---
int fun();

void test()
{
  int (*funp)() = &fun;
}

--


More information about the Digitalmars-d-bugs mailing list