← Back to index
|
Original Bugzilla link
Bug 3289 – ICE (..\ztc\cod4.c) when using a delegate inside a foreach
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-09-03T13:07:00Z
Last change time
2015-06-09T01:28:06Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
2korden
Comments
Comment #0
by 2korden — 2009-09-03T13:07:21Z
Minimal testcase to reproduce: struct Foo { int i; } void main() { Foo[] array; foreach (ref foo; array) { auto x = () { foo.i = 42; }; } } Internal error: ..\ztc\cod4.c 354
Comment #1
by clugdbug — 2009-09-07T03:05:45Z
Fixed DMD2.032.