struct Memory { int foo; } struct Image { Memory sup; alias sup this; void bla() { foo = 1; } } $ dmd -c test.d DMD v2.054 DEBUG test.d(12): Error: undefined identifier foo Using this.foo = 1 fixes it.
*** This issue has been marked as a duplicate of issue 2787 ***