[Issue 23374] New: ImportC: only 1 designator currently allowed for C struct field initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 26 03:20:35 UTC 2022
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 at puremagic.com
Reporter: dave287091 at 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,
};
--
More information about the Digitalmars-d-bugs
mailing list