September 17, 2022 [Issue 23338] New: braceless subarray initalizers for struct fields fails | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23338 Issue ID: 23338 Summary: braceless subarray initalizers for struct fields fails Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: bugzilla@digitalmars.com 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. -- |
Copyright © 1999-2021 by the D Language Foundation