Bug 22570 – more arguments than fields allowed in struct constructor

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-12-05T03:37:21Z
Last change time
2021-12-14T10:34:33Z
Keywords
pull
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2021-12-05T03:37:21Z
## test case ``` struct S { Object o1; } void main() @safe { S[] s; s = [S(null, null)]; s ~= S(null, null); } ``` ## notes Regression from 2.087 according to run.dlang.io
Comment #1 by b2.temp — 2021-12-05T03:45:18Z
Comment #2 by dlang-bot — 2021-12-09T14:54:47Z
@RazvanN7 created dlang/dmd pull request #13411 "Fix Issue 22570 - more arguments than fields allowed in struct constructor" fixing this issue: - Fix Issue 22570 - more arguments than fields allowed in struct constructor https://github.com/dlang/dmd/pull/13411
Comment #3 by dlang-bot — 2021-12-09T16:32:57Z
dlang/dmd pull request #13411 "Fix Issue 22570 - more arguments than fields allowed in struct constructor" was merged into stable: - 609b2f5844ce7061b61a9697fc703c050295a280 by RazvanN7: Fix Issue 22570 - more arguments than fields allowed in struct constructor https://github.com/dlang/dmd/pull/13411
Comment #4 by dlang-bot — 2021-12-14T10:34:33Z
dlang/dmd pull request #13421 "merge stable" was merged into master: - bca45b506d17a4b458e4a381af68f4ad195bc74e by RazvanN7: Fix Issue 22570 - more arguments than fields allowed in struct constructor https://github.com/dlang/dmd/pull/13421