www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18867] New: Optimizer crash on assignment to vector element

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

          Issue ID: 18867
           Summary: Optimizer crash on assignment to vector element
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kinke gmx.net

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.

--
May 16 2018