www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22570] New: more arguments than fields allowed in struct

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

          Issue ID: 22570
           Summary: more arguments than fields allowed in struct
                    constructor
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com



```
struct S
{
    Object o1;
}

void main()  safe
{
    S[] s;
    s = [S(null, null)];
    s ~= S(null, null);
} 
```



Regression from 2.087 according to run.dlang.io

--
Dec 04 2021