D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4626 - undefined identifier causes assertion failure in statements.c
Summary: undefined identifier causes assertion failure in statements.c
Status: RESOLVED DUPLICATE of issue 4564
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 17:17 UTC by Ray Kulhanek
Modified: 2010-08-11 17:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ray Kulhanek 2010-08-11 17:17:43 UTC
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 Brad Roberts 2010-08-11 17:29:32 UTC

*** This issue has been marked as a duplicate of issue 4564 ***