Bug in DMD?

ryuukk_ ryuukk.dev at gmail.com
Thu Mar 2 21:08:32 UTC 2023


Hello,

I encountered a weird issue, my program segfault when i feed DMD 
with my files and static libs

It doesn't when i compile with LDC

If i split the compile/link in 2 different steps, then all works 
correctly


DMD (1step: ⛔): 
https://gist.github.com/ryuukk/f0ae2ae0c8980219c04d0c6d8678940d

LDC (1step: ✅): 
https://gist.github.com/ryuukk/4c7706697583431389d5e2074548f7c4

DMD (2step: ✅): 
https://gist.github.com/ryuukk/a0373339e590ecdae91e3f05b2d81bf4


Looks like DMD is messing things up when mixing code with static 
libraries?



Toolchains:
   - DMD32 D Compiler v2.102.1
   - LDC - the LLVM D compiler (1.32.0-beta1):


More information about the Digitalmars-d-learn mailing list