[Bug?] ImportC: undefined RTInfoImpl for imported C struct's TypeInfo on 2.112
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Jul 3 01:40:20 UTC 2026
On 03/07/2026 7:06 AM, Danny Arends wrote:
> # Is import-only |RTInfo| emission expected to work in 2.112, or is
> compiling the ImportC unit now required by design (fallout from the AA/
> array-hook templatization)?
No.
If you don't compile a file, you don't get the symbols that it provides.
This is true for D, as it is C++.
> # Is this the same as fixed Issue 10442 <https://bugzilla-
> archive.dlang.org/bugs/10442/> ("RTInfo generation can fail for structs
> defined in imported modules"), incompletely fixed?
I don't think so. It never should have worked with dmd's current
generation model for TypeInfo.
More information about the Digitalmars-d-learn
mailing list