April 04, 2019 [Issue 19788] New: compiler crash on slicing a enum typed as vector | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: b2.temp@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` -- |
Copyright © 1999-2021 by the D Language Foundation