[Issue 17466] New: Vector assign of long[2][] cause segfault

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 4 04:30:38 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17466

          Issue ID: 17466
           Summary: Vector assign of long[2][] cause segfault
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moskou.moskou at gmail.com

---------
import std.stdio;

//alias T = int; //work
alias T = long; //not work

int main() {
    T[2][] d = new T[2][](3);
    d[] = [1L, 2L];
    writeln(d);
    return 0;
}
---------

This code cause segfault.

DMD version: v2.074.1

--


More information about the Digitalmars-d-bugs mailing list