September 26, 2022 [Issue 23374] New: ImportC: only 1 designator currently allowed for C struct field initializer | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23374 Issue ID: 23374 Summary: ImportC: only 1 designator currently allowed for C struct field initializer Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: ImportC Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: dave287091@gmail.com struct Foo { int x; int y; }; struct Bar { struct Foo f; }; struct Bar b = {.f.x = 3}; // Error: only 1 designator currently allowed for C struct field initializer struct Bar b2 = { .f.x = 3, // Error: only 1 designator currently allowed for C struct field initializer .f.y = 4, }; -- |
Copyright © 1999-2021 by the D Language Foundation