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: [email protected]
Reporter: [email protected]
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`
--