September 28, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1537

           Summary: Internal error: ..\ztc\cgcod.c 1521
           Product: D
           Version: 1.021
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: samukha@voliacable.com


Stripped down code from a real app. Please don't discard it as meaningless. ICE when compiled with -O switch.

void foo(char[] s)
{
    int x = -1;

    while (s.length)
    {
        char c = s[0];

        if (c == '}')
           break;

        assert (c >= '0' && c <= '9', s[0..$]);

        if (x == -1)
            x = 0;
    }
}


-- 

October 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1537


braddr@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from braddr@puremagic.com  2007-10-20 03:42 -------
Fixed in 1.022/2.005


--