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

          Issue ID: 23356
           Summary: ImportC, forward referenced static functions, and -lib
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

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

static int func();

int main()
{
  return func();
}

static int func()
{
  return 0;
}

Compiling:

 dmd file.c -lib

 Error: no definition for static func

Introduced by:

  bisected it to https://github.com/dlang/dmd/pull/13846

--

Reply via email to