[Issue 15998] New: Segmentation fault on const folding of arrays of static arrays
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri May 6 14:28:50 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15998
Issue ID: 15998
Summary: Segmentation fault on const folding of arrays of
static arrays
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timon.gehr at gmx.ch
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.
--
More information about the Digitalmars-d-bugs
mailing list