www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23026] New: ImportC: C designator-list not supported yet

https://issues.dlang.org/show_bug.cgi?id=23026

          Issue ID: 23026
           Summary: ImportC: C designator-list not supported yet
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dave287091 gmail.com

The following C99 code fails to compile:

```
struct S {
    int x;
};

struct S s = {.x = 1}; // Error: C designator-list not supported yet
```

--
Apr 16 2022