Bug 12937 – ICE with void static array initializing

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-17T01:31:00Z
Last change time
2014-06-18T04:23:59Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-06-17T01:31:12Z
Test case: void main() { //void[1] sa = [cast(ubyte)1]; // ok //ubyte[] da = [cast(ubyte)1]; //void[1] sa = cast(void[])a; // ok //auto da = cast(void[])[cast(ubyte)1]; // ok void[1] sa2 = cast(void[])[cast(ubyte)1]; // ICE! }
Comment #1 by k.hara.pg — 2014-06-17T02:51:56Z
Comment #2 by github-bugzilla — 2014-06-18T04:23:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4fc3f3a6738d9ba33eb6134551a6e0fe4fde1116 fix Issue 12937 - ICE with void static array initializing https://github.com/D-Programming-Language/dmd/commit/76199e53646856713bbd376f57e76719e0ef9eaf Merge pull request #3675 from 9rnsr/fix12937 Issue 12937 - ICE with void static array initializing