Summary: Linking order affects proper execution
           Product: D
           Version: 2.035
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Pablo Ripolles <> 2009-10-29 16:08:57 PDT ---
Created an attachment (id=484)
sources, makefile and terminal window image capture

* Overview:

There are two source files, the main one (dependent) and the utility one
(dependency).  The separated compilation is successfully accomplished.  The
linking stage is also successfully accomplished but:

 1) If we proceed with this command:

 $ dmd -g utility.d main.d -ofhello

 Then on execution it fails.

 2) If we proceed with this command:

 $ dmd -g main.d utility.d -ofhello

 Then on execution it succeeds.

* Steps to Reproduce:

The attachment has the source files and a makefile with the second option
disabled.  There is also a terminal window image capture with the CLI process.

Unzip the attachment.
$ make
$ ./hello

* Actual Results:

"Bus error"

* Expected Results:

"hello, world"

* Build Date & Platform:

Build 2009-10-30 on Mac OS 10.5.8

* Additional Builds and Platforms:

Does not occur on Build 2009-10-30 on GNU/Linux Debian 5.0.3

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

Reply via email to