[Issue 23356] New: ImportC, forward referenced static functions, and -lib
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 21 21:53:28 UTC 2022
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: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
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
--
More information about the Digitalmars-d-bugs
mailing list