Bug 12179 – [ICE](e2ir.c 1861) with array operation

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-15T06:46:00Z
Last change time
2014-09-21T10:03:16Z
Keywords
diagnostic, ice, pull
Assigned to
nobody
Creator
bearophile_hugs
See also
https://issues.dlang.org/show_bug.cgi?id=13497

Comments

Comment #0 by bearophile_hugs — 2014-02-15T06:46:57Z
void foo(int[]) {} void main() { int[1] a; (a[] * a[]).foo; } dmd 2.065beta3 gives: Internal error: e2ir.c 1861
Comment #1 by andrej.mitrovich — 2014-02-15T11:05:20Z
Used to be: Error: Array operation a[] * a[] not implemented So I guess this is a diagnostic regression.
Comment #2 by dlang-bugzilla — 2014-02-15T16:54:17Z
Comment #3 by k.hara.pg — 2014-04-06T08:12:41Z
Comment #4 by k.hara.pg — 2014-04-10T07:59:23Z
*** Issue 11992 has been marked as a duplicate of this issue. ***
Comment #5 by github-bugzilla — 2014-04-10T10:25:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/af1cd813597aae803334a7641bc0812efa7c3eb1 fix Issue 12179 - [ICE](e2ir.c 1861) with array operation https://github.com/D-Programming-Language/dmd/commit/212814e875fe6627ad76e8e7aacd53c208a11475 Merge pull request #3427 from 9rnsr/fix12179 [REG2.065] Issue 12179 - [ICE](e2ir.c 1861) with array operation
Comment #6 by k.hara.pg — 2014-06-24T15:34:51Z
*** Issue 12982 has been marked as a duplicate of this issue. ***
Comment #7 by bearophile_hugs — 2014-09-21T10:03:16Z
The error message for the original code is: test.d(4,6): Error: array operation a[] * a[] without assignment not implemented But perhaps a better error message is related to this: test.d(4,6): Error: array operation a[] * a[] without explicit destination memory not allowed Because I think not allocating memory from array ops is a design decision, and it will not be implemented.