www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13497] New: [ICE e2ir 1911] Array op crash

https://issues.dlang.org/show_bug.cgi?id=13497

          Issue ID: 13497
           Summary: [ICE e2ir 1911] Array op crash
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: growlercab gmail.com

The two "main()" below both result in the same ICE e2ir.c:1911 using dmd
2067-devel


---
void main() {
    int[1] a;
    auto tmp = (a[] * a[])[];
}

/*void main()
{
    double[] p = [-1, -2, -3, -4];
    double[] origin = [1, 2, 3, 4];
    auto shiftedPoint = (p[] - origin[])[];
}*/

---

Internal error: e2ir.c 1911

I'm opening this as a new issue but it may be a duplicate of 12179. 

System:
Arch x86_64.

DMD64 D Compiler v2.066.0
or
DMD64 D Compiler v2.067-devel-5606406

Cheers,
gc

--
Sep 19 2014