digitalmars.D.bugs - [Issue 23374] New: ImportC: only 1 designator currently allowed for
- d-bugmail puremagic.com (30/30) Sep 25 2022 https://issues.dlang.org/show_bug.cgi?id=23374
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, }; --
Sep 25 2022