Bug 10486 – Segfault on assigning `typeof(null)` to static array

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-27T00:50:00Z
Last change time
2013-06-28T12:28:01Z
Keywords
ice, pull
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2013-06-27T00:50:19Z
--- void main() { typeof(null) null_; int[1] sarr = null_; } --- `arrayOf` is called on null `e2y->type->toBasetype()->nextOf()` at `e2ir.c@2837` (`AssignExp::toElem`).
Comment #1 by k.hara.pg — 2013-06-27T20:38:24Z
Comment #2 by github-bugzilla — 2013-06-28T12:07:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/bb409875035272973cea56b41f58050bafdb7d2a fix Issue 10486 - Segfault on assigning `typeof(null)` to static array https://github.com/D-Programming-Language/dmd/commit/ce270e41aa185915136651124f2bf00981c10f84 Merge pull request #2263 from 9rnsr/fix10486 [REG2.063] Issue 10486 - Segfault on assigning `typeof(null)` to static array
Comment #3 by github-bugzilla — 2013-06-28T12:27:42Z
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/92a411180b72341a20cbecffd2d38c403bc59834 Merge pull request #2263 from 9rnsr/fix10486 [REG2.063] Issue 10486 - Segfault on assigning `typeof(null)` to static array Conflicts: src/e2ir.c