www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4626] New: undefined identifier causes assertion failure in statements.c

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4626

           Summary: undefined identifier causes assertion failure in
                    statements.c
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kulhanek.5 wright.edu


--- Comment #0 from Ray Kulhanek <kulhanek.5 wright.edu> 2010-08-11 17:17:43
PDT ---
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.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4626


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr puremagic.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Brad Roberts <braddr puremagic.com> 2010-08-11 17:29:32 PDT
---
*** This issue has been marked as a duplicate of issue 4564 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 11 2010