[Issue 7042] New: Allocation of 'creal' array with 'new' fails when	using DMD and OptLink in tandem
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Dec  1 03:52:58 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7042
           Summary: Allocation of 'creal' array with 'new' fails when
                    using DMD and OptLink in tandem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nobody at puremagic.com
        ReportedBy: full.demon at gmail.com
--- Comment #0 from Taco <full.demon at gmail.com> 2011-12-01 03:51:52 PST ---
Consider the following code:
main.d:
import std.stdio;
int main()
{      
    alias creal T;
    writeln("alloc");
    T[] x = new T[4];
    writeln("done");
    return 0;
}
This runs fine when compiled with:
dmd main.d
main
However, it never displays "done" (it hangs) when compiled with:
dmd -c main.d
link main.obj
main
This is the case ONLY if T is 'double', 'idouble', 'creal'. I tried all other
types, but they work fine. Even a struct with one member of type double.
I use the binary package for windows of D2.056, at a Win7 32bit system. If you
need more info, please ask.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list