LDC crash when compiling custom barebones runtime

Dylan Graham dylan.graham2000 at gmail.com
Wed Sep 23 20:04:46 UTC 2020


On Wednesday, 23 September 2020 at 20:01:16 UTC, kinke wrote:
> On Wednesday, 23 September 2020 at 16:50:35 UTC, Dylan Graham 
> wrote:
>> The crash also occurs if I build the runtime and user code as 
>> an x86 target.
>
> You need to fix the type of the 4th TypeInfo_Class field to 
> `Interface[]` (not `void*[]`; `Interface` is a struct and the 
> instances are generated by the compiler). Then compiling
>
> interface I { void foo(); }
> class C : I { void foo() {} }
>
> works fine here for i686.
>
> Using a CI build of LDC (enabled assertions) can help tracking 
> such stuff down.

Oh bugger! I mistyped that declaration. Thanks for the quick 
help. It works now =)


More information about the digitalmars-d-ldc mailing list