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