[Issue 2378] New: Win32 OPTLINK crashes when it links some kind of static library into a executeable.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 29 01:46:00 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2378

           Summary: Win32 OPTLINK crashes when it links some kind of static
                    library into a executeable.
           Product: D
           Version: 2.018
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: link-failure
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: hskwk at inter7.jp


Windows dmd (later than 2.018) OPTLINK crashes (Unexpected OPTLINK termination)
when it links some kind of static library into a executable.
Here is a small example as a quick report.


---- make following module into a static library

module test;
import std.random;
Mt19937 gen;
uint nonThreadSafeRandom() {return gen.next;}


---- OPTLINK crashes when making following code into a exe with linking the
library just made before

import test;
void main() { uint a = nonThreadSafeRandom(); }

---- OPTLINK works if deeper module is imported

import test, std.random;
void main() { uint a = nonThreadSafeRandom(); }



This is a quick report, I have not found a true cause yet.

thanks,

p.s.
I'm sorry posting redundant news on digitalmars.D.bugs.
I wish this tracker is the proper channel to report bugs.


-- 



More information about the Digitalmars-d-bugs mailing list