Bug 24373 – ImportC: .di generator can output invalid aliases

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

Comments

Comment #0 by dave287091 — 2024-02-08T20:23:24Z
Example c file: typedef unsigned int uint; typedef unsigned short ushort; If you then convert to a .di file, you get something like: extern(C) { // ... bunch of junk alias uint = uint; alias ushort = ushort; // ... } Which are not valid alias declarations.
Comment #1 by robert.schadek — 2024-12-13T19:33:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20395 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB