Bug 1051 – foreach over member array in static func causes ICE

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-03-11T04:48:00Z
Last change time
2015-06-09T05:15:23Z
Assigned to
dvdfrdmn
Creator
default_357-line

Comments

Comment #0 by default_357-line — 2007-03-11T04:48:09Z
The following code (syntactically wrong) results first in an error, then in an ICE on MinGW/gdc 4.1.2/0.23 class errors { int[] t; static void crash() { foreach (x; t) {} } } void main() { } Greetings --downs
Comment #1 by thomas-dloop — 2007-03-12T00:29:49Z
Comment #2 by dvdfrdmn — 2007-09-23T21:56:27Z
Fixed in svn rev 169 / release 0.25