Bug 4626 – undefined identifier causes assertion failure in statements.c
Status
RESOLVED
Resolution
DUPLICATE
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-08-11T17:17:00Z
Last change time
2010-08-11T17:29:32Z
Assigned to
nobody
Creator
kulhanek.5
Comments
Comment #0 by kulhanek.5 — 2010-08-11T17:17:43Z
void main() {
foreach(i; 0..s.length) {}
}
-------
When compiling the above code with dmd 2.047 on Windows XP SP3, I get the following error:
test.d(2): Error: undefined identifier s
Assertion failure: '0' on line 2237 in 'statement.c'
Testing it on Windows 98 with dmd 2.036 didn't yield this error (It caught the undefined identifier, but didn't fail an assert.)
Comment #1 by braddr — 2010-08-11T17:29:32Z
*** This issue has been marked as a duplicate of issue 4564 ***