Bug 24199 – ImportC: generated .di file uses struct keyword when referring to a type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-10-25T05:44:26Z
Last change time
2023-10-28T09:07:40Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
dave287091
Comments
Comment #0 by dave287091 — 2023-10-25T05:44:26Z
// s.c
struct Foo {
int x;
};
struct Foo foo(void);
when processed into a .di file:
// s.di
// D import file generated from 's.c'
extern (C)
{
struct Foo
{
int x = void;
}
struct Foo foo(); // this is not valid D, remove the `struct`
}
Comment #1 by dlang-bot — 2023-10-28T07:52:29Z
@WalterBright created dlang/dmd pull request #15740 "fix Issue 24199 - ImportC: generated .di file uses struct keyword whe…" fixing this issue:
- fix Issue 24199 - ImportC: generated .di file uses struct keyword when referring to a type
https://github.com/dlang/dmd/pull/15740
Comment #2 by dlang-bot — 2023-10-28T09:07:40Z
dlang/dmd pull request #15740 "fix Issue 24199 - ImportC: generated .di file uses struct keyword whe…" was merged into master:
- a61604563a33dffd3428342686e8803bb467b198 by Walter Bright:
fix Issue 24199 - ImportC: generated .di file uses struct keyword when referring to a type
https://github.com/dlang/dmd/pull/15740