[Issue 19788] New: compiler crash on slicing a enum typed as vector

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 4 09:51:08 UTC 2019


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

          Issue ID: 19788
           Summary: compiler crash on slicing a enum typed as vector
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice, SIMD
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

crasher:

---
void main()
{
    enum v = __vector(float[4]).init;
    const(float)[] a = v[];
}    
---

> dmd: dmd/backend/cod2.d:4261: Assertion `cast(int)(*e).Eoper == 147 || cast(int)(*e).Eoper == 146' failed.

Does not happen if v storage is set to `const` instead of `enum`

--


More information about the Digitalmars-d-bugs mailing list