Summary: DMD generates programs that immediately segfault.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD

--- Comment #0 from Chad Joan <> 2010-11-26 09:34:48 PST ---
My program is this:

void main() {}

My bash session looks like this:

$ dmd main.d -v
binary    dmd
version   v2.050
config    /usr/local/share/dcompilers/dmd/linux/bin/dmd.conf
parse     main
importall main
import    object       
semantic  main
semantic2 main
semantic3 main
code      main
function  main
gcc main.o -o main -m32 -Xlinker
-L/usr/local/share/dcompilers/dmd/linux/bin/../lib -Xlinker --export-dynamic
-lphobos2 -lpthread -lm 
warning: creating a DT_TEXTREL in object.
$ ./main
Segmentation fault

I'm on 64-bit Gentoo Linux, though I am creating 32-bit executables like
normal.  This is a problem for dmd v2.050 and v2.049.  v2.048 runs just fine,
though it also makes the linker complain about "creating a DT_TEXTREL in

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

Reply via email to