Bug 442 – Crash on foreach of mixed-in aggregate.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-18T09:49:00Z
Last change time
2014-02-15T13:19:04Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
bruno.do.medeiros+deebugz

Comments

Comment #0 by bruno.do.medeiros+deebugz — 2006-10-18T09:49:38Z
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) { } }
Comment #1 by braddr — 2006-10-18T12:15:56Z
*** This bug has been marked as a duplicate of 441 ***