← Back to index
|
Original Bugzilla link
Bug 23356 – ImportC, forward referenced static functions, and -lib
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-09-21T21:53:28Z
Last change time
2024-12-13T19:24:36Z
Keywords
backend, ImportC
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#20152 →
Comments
Comment #0
by bugzilla — 2022-09-21T21:53:28Z
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
Comment #1
by ibuclaw — 2024-01-22T00:17:09Z
Still an issue in the compiler. Error: no definition found for static `func` in this module, statics defined in one module cannot be referenced from another
Comment #2
by robert.schadek — 2024-12-13T19:24:36Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/20152
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB