[Issue 22537] New: importC: Error: undefined reference to 'function' when using static in forward declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 23 01:05:50 UTC 2021


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

          Issue ID: 22537
           Summary: importC: Error: undefined reference to 'function' when
                    using static in forward declaration
           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

static int func();

int main()
{
  return func();
}

static int func()
{
  return 0;
}

--


More information about the Digitalmars-d-bugs mailing list