digitalmars.D.bugs - [Issue 15998] New: Segmentation fault on const folding of arrays of
- via Digitalmars-d-bugs (27/27) May 06 2016 https://issues.dlang.org/show_bug.cgi?id=15998
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 puremagic.com Reporter: timon.gehr 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. --
May 06 2016