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];
}