https://issues.dlang.org/show_bug.cgi?id=23597
Issue ID: 23597
Summary: .di files not compatible with -i
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
/////// 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
--