LDC crash when compiling custom barebones runtime

kinke noone at nowhere.com
Wed Sep 23 20:01:16 UTC 2020

On Wednesday, 23 September 2020 at 16:50:35 UTC, Dylan Graham 
> 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.

More information about the digitalmars-d-ldc mailing list