Thread overview
[Issue 21328] Forwarding static float array element inside a lambda crashes dmd backend
Oct 22, 2020
Dennis
Nov 06, 2020
Dlang Bot
Nov 15, 2020
Dlang Bot
October 22, 2020
https://issues.dlang.org/show_bug.cgi?id=21328

--- Comment #1 from Dennis <dkorpel@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

--
November 06, 2020
https://issues.dlang.org/show_bug.cgi?id=21328

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@thewilsonator created dlang/dmd pull request #11927 "Fix issue 21328: Forwarding static float array element inside a lambda crashes dmd backend" fixing this issue:

- Fix issue 21328: Forwarding static float array element inside a lambda crashes dmd backend

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

--
November 15, 2020
https://issues.dlang.org/show_bug.cgi?id=21328

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11927 "Fix issue 21328: Forwarding static float array element inside a lambda crashes dmd backend" was merged into master:

- 193c28f462911018dd0fd5be388486fcaee38010 by Nicholas Lindsay Wilson:
  Fix issue 21328: Forwarding static float array element inside a lambda
crashes dmd backend

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

--