Bug 23348 – not handling braceless sub structs in initializers

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-09-19T08:22:26Z
Last change time
2022-09-20T07:19:56Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2022-09-19T08:22:26Z
struct SS { char a, b[2]; }; struct S { struct SS ss; char d; }; static struct S s = { 1, 2, 3, 4 }; should result in data of 1,2,3,4 but produces 1,2,2,3
Comment #1 by dlang-bot — 2022-09-20T07:19:56Z
dlang/dmd pull request #14455 "fix Issue 23348 - not handling braceless sub structs in initializers" was merged into master: - 404a4af2486779dec0dec77a4a72c9097fe1068a by Walter Bright: fix Issue 23348 - not handling braceless sub structs in initializers https://github.com/dlang/dmd/pull/14455