www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20364] New: [REG2.069] changing length for array of

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

          Issue ID: 20364
           Summary: [REG2.069] changing length for array of typeof(null)
                    elements kills program
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: sahmi.soulaimane gmail.com

Test case:

```
void main()
{
    typeof(null)[] result;
    result.length = 1;
}
```

--
Nov 06 2019