[Issue 2549] New: Segfault on array multiplication.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 30 14:43:43 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2549

           Summary: Segfault on array multiplication.
           Product: D
           Version: 2.022
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dsimcha at yahoo.com


import std.stdio;

void main() {
    double[] foo = [1.0,2,3,4,5].dup;
    writeln(foo[] * 2.0);

}

Output of this program on Win32:

object.Error: Access Violation
[


-- 



More information about the Digitalmars-d-bugs mailing list