[Issue 23389] ImportC: types from core.stdc.* are distinct types when imported from C
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 9 05:47:48 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23389
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
What's happening is that s.c is declaring struct Sfile. core.stdc.stdio is also
declaring a struct Sfile, but a *different* one. Declarations in D files are
not merged with declarations from C files.
One possible solution is for core.stdc.stdio to declare Sfile using ImportC.
--
More information about the Digitalmars-d-bugs
mailing list