D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17466 - Vector assign of long[2][] cause segfault
Summary: Vector assign of long[2][] cause segfault
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 All
: P1 major
Assignee: No Owner
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2017-06-04 11:30 UTC by Kohei Morita
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kohei Morita 2017-06-04 11:30:38 UTC
---------
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 basile-z 2019-11-03 18:26:13 UTC
fix confirmed since 2.085.1, see https://run.dlang.io/is/aCXbXz
Comment 2 basile-z 2019-11-03 18:26:55 UTC
sorry this was 2.086.1 actually