[Issue 23597] New: .di files not compatible with -i
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  4 03:56:59 UTC 2023
    
    
  
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: nobody at puremagic.com
          Reporter: dlang-bugzilla at thecybershadow.net
/////// 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
--
    
    
More information about the Digitalmars-d-bugs
mailing list