Created attachment 1668
reduced test case
I submit in attachment a reduced test case that crashes DMD and gives an internal error in LDC2:
$ dmd -unittest a.d b.d
Error: variable __gate forward referenced
Segmentation fault: 11
$ ldc2 -unittest a.d b.d
openmethods.d(19): Error: Internal Compiler Error: function not fully analyzed; previous unreported errors compiling openmethods.Method!("bug", "deallocator", A, B).Method._staticCtor3625?
Comment #1 by razvan.nitu1305 — 2023-05-09T13:24:47Z
I cannot reproduce this with latest master. I get successful compilation.