www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13286] New: -inline and a library results in application

https://issues.dlang.org/show_bug.cgi?id=13286

          Issue ID: 13286
           Summary: -inline and a library results in application failing
                    to launch
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: kf6kjg+dlang gmail.com

DMD v2.065
Win7, compiling 64bit with 64bit libs (compiled them myself).

New to D, took some gracious handholding from Mike Wey author of DMagick, an
interface to the ImageMagick library, to get me headed down the correct road.

After getting his example code working, I found that in my code:
rdmd -od. --build-only -m64 -Dddoc -cov -unittest -Ilib lib\CORE_RL_magick_.lib
lib\curl.lib src\anaximander.d
Compiles the code and the resulting executable runs.

rdmd -od. --build-only -m64 -Dddoc -cov -unittest -inline -Ilib
lib\CORE_RL_magick_.lib lib\curl.lib src\anaximander.d
Compiles the code and the resulting executable crashes on launch with a Windows
dialog and the following pretty useless information:
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    anaximander.exe
  Application Version:    0.0.0.0
  Application Timestamp:    53e6f199
  Fault Module Name:    ntdll.dll
  Fault Module Version:    6.1.7601.18247
  Fault Module Timestamp:    521eaf24
  Exception Code:    c0000005
  Exception Offset:    00000000000508c5
  OS Version:    6.1.7601.2.1.0.256.48
  Locale ID:    1033
  Additional Information 1:    349b
  Additional Information 2:    349bdc2afb09d13b9277201f995053a0
  Additional Information 3:    782c
  Additional Information 4:    782c172310adbc84bab0e7b51b784a6a

Looks like a null-access to me, but my code is simple...

I'll be posting a link to my code's repository as soon as the commit I've been
working on is ready enough to push so that others can try it - unless the
reason is obvious to those here..  Hopefully a test case can be built.

--
Aug 11 2014