Summary: postblit not called for foreach arg over array of
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

The assertion fails in the following program (I was able to fix it in my
back-end for .NET but it is probably best for a fix to go into the front-end).

struct X {
     int i;
     this(this) {
void main() {
     X [1] xs;
     xs[0] = X();
     foreach(x; xs) {
         assert(x.i == 1);


Reply via email to