Bug 17466 – Vector assign of long[2][] cause segfault
Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2017-06-04T11:30:38Z
Last change time
2020-03-21T03:56:33Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Kohei Morita
Comments
Comment #0 by moskou.moskou — 2017-06-04T11:30:38Z
---------
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