[Issue 22705] New: importC: forward reference to struct's typedef gives "struct already exists"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 25 14:08:45 UTC 2022


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

          Issue ID: 22705
           Summary: importC: forward reference to struct's typedef gives
                    "struct already exists"
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: duser at airmail.cc

```
data_t *p;
struct data_s {
        int x;
};
typedef struct data_s data_t;
```

test.c(2): Error: struct `test.data_s` already exists at test.c(5). Perhaps in
another function with the same name?

this used to work before the fix for issue 22623

--


More information about the Digitalmars-d-bugs mailing list