Comment #0 by dlang-bugzilla — 2023-01-04T03:56:59Z
/////// mod.di ///////
void fun()() {}
/////// test.d ///////
import mod;
void main() { fun(); }
//////////////////////
$ dmd test.d # OK - compiles successfully
$ dmd -i test.d # fails
/usr/sbin/ld: test.o: in function `_Dmain':
test.d:(.text._Dmain[_Dmain]+0x5): undefined reference to `_D3mod__T3funZQfFNaNbNiNfZv'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
Comment #1 by dlang-bot — 2023-01-04T04:13:07Z
@CyberShadow created dlang/dmd pull request #14783 "Fix Issue 23597 - .di files not compatible with -i" fixing this issue:
- Fix Issue 23597 - .di files not compatible with -i
https://github.com/dlang/dmd/pull/14783
Comment #2 by dlang-bot — 2023-01-05T10:38:19Z
dlang/dmd pull request #14783 "Fix Issue 23597 - .di files not compatible with -i" was merged into master:
- 474f36c5ab491c1b2d82c4cf1b17d996784a6405 by Vladimir Panteleev:
Fix Issue 23597 - .di files not compatible with -i
https://github.com/dlang/dmd/pull/14783