[Issue 22407] New: importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 17 14:00:59 UTC 2021


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

          Issue ID: 22407
           Summary: importC: Error: cannot implicitly convert expression
                    of type 'extern (C) int(int a)' to 'const(extern (C)
                    int function(int))'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

---
typedef int (*func) (int a);
int fun1 (int a);
const func table[1] = { fun1 };

--


More information about the Digitalmars-d-bugs mailing list