Bug 2583 – Segfault on invalid foreach argument

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-01-12T12:46:00Z
Last change time
2015-06-09T01:21:00Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2009-01-12T12:46:10Z
void main() { int c; foreach(e; c) foo(e); }
Comment #1 by matti.niemenmaa+dbugzilla — 2009-01-13T10:16:28Z
*** This bug has been marked as a duplicate of 2577 ***