D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23026 - ImportC: C designator-list not supported yet
Summary: ImportC: C designator-list not supported yet
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, rejects-valid
Depends on:
Blocks:
 
Reported: 2022-04-17 06:12 UTC by dave287091
Modified: 2022-09-16 07:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description dave287091 2022-04-17 06:12:09 UTC
The following C99 code fails to compile:

```
struct S {
    int x;
};

struct S s = {.x = 1}; // Error: C designator-list not supported yet
```
Comment 1 Walter Bright 2022-09-16 07:56:36 UTC
This has been fixed in master.