Summary: Memory corruption because without *.def file DMD
                    compiles DLL with assumption `_tls_index = 0`
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: critical
          Priority: P2
         Component: DMD

--- Comment #0 from Denis Shelomovskij <> 2012-05-21 
18:09:46 MSD ---
Also without *.def file exported `extern(C)` symbols are prefixed with `_` and
require this prefix when obtained with GetProcAddress.

DMD should ether reject compiling DLL without module definition file or tell
optling that output is a library.

If there are reasons not to change current behavior, this trap should be
mentioned on top of dll.html (preferable in red color) and all D IDE developers
should be notified about this issue and catch such case on IDE level.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to