www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17466] New: Vector assign of long[2][] cause segfault

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 puremagic.com
          Reporter: moskou.moskou 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

--
Jun 04