www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22429] New: importC: designator-list not supported yet

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

          Issue ID: 22429
           Summary: importC: designator-list not supported yet
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

```
int a[2] = {
    [0] = 1,
    [1] = 2,
};
```

```
parser.c(2): Error: C designator-list not supported yet
```

Needed for compiling tree-sitter parsers, for example:
https://github.com/tree-sitter/tree-sitter-json/blob/master/src/parser.c

--
Oct 19 2021