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
Comment #1 by b2.temp — 2019-11-03T18:26:13Z
fix confirmed since 2.085.1, see https://run.dlang.io/is/aCXbXz
Comment #2 by b2.temp — 2019-11-03T18:26:55Z
sorry this was 2.086.1 actually