This crashes the backend with `-O`, since v2.073: ``` import core.simd; ulong2 foo(ulong s) { ulong2 v; v[0] = s; return v; } ``` Internal error: dmd/backend/cgcod.c 1695 See https://run.dlang.io/is/uFBgBt.
Without the import: ---- alias __vector(ulong[2]) ulong2; ulong2 foo(ulong s) { ulong2 v; v[0] = s; return v; } ----
@WalterBright created dlang/dmd pull request #12047 "fix Issue 18867 - backend/cgcod.c crash on assignment to vector element" fixing this issue: - fix Issue 18867 - backend/cgcod.c crash on assignment to vector element https://github.com/dlang/dmd/pull/12047
dlang/dmd pull request #12047 "fix Issue 18867 - backend/cgcod.c crash on assignment to vector element" was merged into master: - 67553e66427679009e8afba7abf3c9030e122dbc by Walter Bright: fix Issue 18867 - backend/cgcod.c crash on assignment to vector element https://github.com/dlang/dmd/pull/12047