Bug 24381 – ImportC: .di generator emits both forward declarations and definition

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-02-09T19:34:15Z
Last change time
2024-12-13T19:33:13Z
Keywords
ImportC
Assigned to
No Owner
Creator
dave287091
Moved to GitHub: dmd#20398 →

Comments

Comment #0 by dave287091 — 2024-02-09T19:34:15Z
C code: struct foo; struct foo { int x; }; struct bar { int x; }; struct bar; emitted .di file: extern(C) { // ... struct foo; struct foo { int x = void; } struct bar { int x = void; } struct bar; // ... } Which leads to an error about conflicting structs.
Comment #1 by robert.schadek — 2024-12-13T19:33:13Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20398 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB