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.
Comment #3 by k.hara.pg — 2014-09-21T16:08:53Z
Comment #4 by github-bugzilla — 2014-09-30T03:20:30Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/23a9162f0d2b10312076a1949f587dedfa5f9d82 fix Issue 12381 - [ICE] An internal error in e2ir.c while casting array ops https://github.com/D-Programming-Language/dmd/commit/518801d54a1364d26f9b30cf1fde4d53f6c254da Merge pull request #4011 from 9rnsr/fix_arrayop [REG2.065] Issue 13497 & 12381 - fix remaind e2ir ICE around array ops
Comment #5 by github-bugzilla — 2015-02-18T03:37:20Z