Bug 23338 – braceless subarray initalizers for struct fields fails

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-09-17T08:46:04Z
Last change time
2022-09-17T11:05:18Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2022-09-17T08:46:04Z
struct S { int a, b[2]; }; static struct S s = { 1, 2, 3 }; Should produce 3 ints, 1, 2, 3, but instead produces 1, 2, 2.
Comment #1 by dlang-bot — 2022-09-17T08:58:32Z
@WalterBright created dlang/dmd pull request #14448 "fix Issue 23338 - braceless subarray initalizers for struct fields fails" fixing this issue: - fix Issue 23338 - braceless subarray initalizers for struct fields fails https://github.com/dlang/dmd/pull/14448
Comment #2 by dlang-bot — 2022-09-17T11:05:18Z
dlang/dmd pull request #14448 "fix Issue 23338 - braceless subarray initalizers for struct fields fails" was merged into master: - 9cf96d713b05e2114566839006e90e137fb8ef32 by Walter Bright: fix Issue 23338 - braceless subarray initalizers for struct fields fails https://github.com/dlang/dmd/pull/14448