[Issue 23374] ImportC: only 1 designator currently allowed for C struct field initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 23 07:20:33 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23374
Andrea Fontana <trikkuz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trikkuz at gmail.com
--- Comment #1 from Andrea Fontana <trikkuz at gmail.com> ---
Same problem with unions:
union t_union
{
int a;
long b;
};
struct t_struct
{
union t_union u;
};
struct t_struct err = { .u.a = 1 }; // Error: only 1 designator currently
allowed for C struct field initializer
--
More information about the Digitalmars-d-bugs
mailing list