Bug 12381 – [REG2.065] [ICE] An internal error in e2ir.c while casting array ops
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-16T03:49:00Z
Last change time
2015-02-18T03:37:20Z
Keywords
ice, pull
Assigned to
nobody
Creator
philippe.sigaud
Comments
Comment #0 by philippe.sigaud — 2014-03-16T03:49:09Z
I get two different ICE while casting an array operation:
module bug;
void main()
{
double[2] y;
double h;
//double[2] temp1 = cast(double[2])(h*y[]); // Internal error: e2ir.c 2077
double[2] temp2 = cast(double[2])(y[]); // Internal error: e2ir.c 4616
}
Comment #1 by k.hara.pg — 2014-09-21T15:53:38Z
(In reply to Philippe Sigaud from comment #0)
> I get two different ICE while casting an array operation:
[snip]
> double[2] temp2 = cast(double[2])(y[]); // Internal error: e2ir.c 4616
The 2nd case is a dup of issue 13437, and already fixed in git-head.
Comment #2 by k.hara.pg — 2014-09-21T16:06:57Z
(In reply to Philippe Sigaud from comment #0)
> I get two different ICE while casting an array operation:
[snip]
> //double[2] temp1 = cast(double[2])(h*y[]); // Internal error: e2ir.c 2077
The first case is a regression from 2,065, as same as issue 13497.