[Issue 21328] Forwarding static float array element inside a lambda crashes dmd backend

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 22 10:04:06 UTC 2020


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

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Further reduced to:
```
void foo(float[1] arr) {
    () {
        float x = arr[0];
    } ();
}
```

The assert on src/dmd/backend/cgxmm.d:804 fails because `xmmstore` is called
with tym_t = TYarray | mTYvolatile, and there is no case for TYarray in the
`switch (tybasic(tym))`.

I've bisected it with Digger, it's introduced in:

https://github.com/dlang/dmd/pull/10200

--


More information about the Digitalmars-d-bugs mailing list