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

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

Comments

Comment #0 by bruno.do.medeiros+deebugz — 2006-10-18T09:46:03Z
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
*** Bug 442 has been marked as a duplicate of this bug. ***
Comment #2 by fvbommel — 2006-10-19T16:45:14Z
Bruno Medeiros wrote: > [email protected] wrote: >> http://d.puremagic.com/issues/show_bug.cgi?id=441 >> >> >> >> >> >> ------- Comment #1 from [email protected] 2006-10-18 12:15 ------- >> *** Bug 442 has been marked as a duplicate of this bug. *** >> >> > > Now that's a duplicate... literally :P > I wonder how it happened, tough. > Most likely an accidental double "submit" click or something like that.
Comment #3 by bugzilla — 2006-11-21T23:08:37Z
Works in DMD 0.174, producing the (correct) error message: test.d(12): Error: cannot infer type for i