[Issue 442] New: Crash on foreach of mixed-in aggregate.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 18 07:49:39 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=442

           Summary: Crash on foreach of mixed-in aggregate.
           Product: D
           Version: 0.171
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: brunodomedeiros+bugz at gmail.com


Crash on foreach of mixed-in aggregate (only if the mixin instance is named): 

---- ----

template opHackedApply() {
    struct Iter {
    }
}

class Foo {
    mixin opHackedApply!() oldIterMix;
}

void main() {
    Foo f = new Foo;
    foreach (i; f.oldIterMix.Iter) {  }
}


-- 




More information about the Digitalmars-d-bugs mailing list