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):
  • Bug in DMD? ryuukk_ via Digitalmars-d-learn
    • Re: Bug in ... ryuukk_ via Digitalmars-d-learn
    • Re: Bug in ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Bug... ryuukk_ via Digitalmars-d-learn
        • Re:... ryuukk_ via Digitalmars-d-learn
          • ... H. S. Teoh via Digitalmars-d-learn
          • ... ryuukk_ via Digitalmars-d-learn
            • ... Ali Çehreli via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... ryuukk_ via Digitalmars-d-learn
                • ... Vladimir Panteleev via Digitalmars-d-learn

Reply via email to