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: nob...@puremagic.com ReportedBy: full.de...@gmail.com --- Comment #0 from Taco <full.de...@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: -------