Bug 15998 – [REG2.067] Segmentation fault on const folding of arrays of static arrays
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-06T21:28:00Z
Last change time
2016-05-16T02:51:30Z
Keywords
ice, pull
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2016-05-06T21:28:50Z
The following code causes a segmentation fault in DMD 2.071.0.
immutable{
string[2] foo=["",""];
string[2][] bar=foo~baz;
}
auto baz(){
immutable(string[2])[] r;
return r;
}
No segmentation fault happens with DMD 2.060 (it incorrectly rejects the code as invalid).
The example should compile.