[Issue 24373] New: ImportC: .di generator can output invalid aliases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 8 20:23:24 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24373
Issue ID: 24373
Summary: ImportC: .di generator can output invalid aliases
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dave287091 at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list