Bug 7976 – ICE(backend/cg87.c)assignment btw two elements of dynamic array of complex number types

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-23T12:26:00Z
Last change time
2013-10-10T23:46:53Z
Keywords
ice
Assigned to
nobody
Creator
k.hanazuki

Comments

Comment #0 by k.hanazuki — 2012-04-23T12:26:52Z
Assignment expressions whose both hand sides are elements of some dynamic arrays of complex number types, causes ICE on dmd backend when their return value is used. Internal error: backend/cg87.c 331 Tested against git HEAD (v2.060). This is minimal sample: ---- void main() { creal[] a = new creal[2]; auto b = a[0] = a[1]; }
Comment #1 by bugzilla — 2013-10-04T20:23:13Z
Comment #2 by github-bugzilla — 2013-10-08T21:29:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1ca222de4bb4df99c8af3b6eb6c3dd0b69e2890d fix Issue 7976 - ICE(backend/cg87.c)assignment btw two elements of dynamic array of complex number types https://github.com/D-Programming-Language/dmd/commit/f756c2c8da696c2462df5df2f29bf1ae0cc99b65 Merge pull request #2629 from WalterBright/fix7976 fix Issue 7976 - ICE(backend/cg87.c)assignment btw two elements of dynamic array of complex number types
Comment #3 by github-bugzilla — 2013-10-08T22:06:49Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7ea1aba981286bf6f9f17850b86d8fc1d9f32a23 Merge pull request #2629 from WalterBright/fix7976 fix Issue 7976 - ICE(backend/cg87.c)assignment btw two elements of dynamic array of complex number types
Comment #4 by github-bugzilla — 2013-10-10T23:46:53Z