[Issue 24306] New: ImportC: same name structs in separate C files interfere when compiled together
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 28 11:48:36 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24306
Issue ID: 24306
Summary: ImportC: same name structs in separate C files
interfere when compiled together
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC
Severity: normal
Priority: P3
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dkorpel at live.nl
a.c
```
struct S;
```
b.c
```
struct S {}
```
dmd a.c // works
dmd b.c // works
dmd a.c b.c // fails with:
Error: struct `a.S` unknown size
--
More information about the Digitalmars-d-bugs
mailing list