``` immutable A a = A(B([])); immutable B b = a.b; struct A { B b; } struct B { int[] c; } ``` Compiling this code with `dmd app.d` results in: `app.d(2): Error: Internal Compiler Error: null field b` Tested with DMD v2.091.0 .
@BorisCarvajal created dlang/dmd pull request #11225 "Fix Issue 20710 - ICE when statically accessing struct member contain…" fixing this issue: - Fix Issue 20710 - ICE when statically accessing struct member containing empty array https://github.com/dlang/dmd/pull/11225
dlang/dmd pull request #11225 "Fix Issue 20710 - ICE when statically accessing struct member contain…" was merged into stable: - cad8f7af5f37b631bf68115bf4faa89e89abbe64 by Boris Carvajal: Fix Issue 20710 - ICE when statically accessing struct member containing empty array https://github.com/dlang/dmd/pull/11225