www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1537] New: Internal error: ..\ztc\cgcod.c 1521

reply d-bugmail puremagic.com writes:
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;
    }
}


-- 
Sep 28 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1537


braddr puremagic.com changed:

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





Fixed in 1.022/2.005


-- 
Oct 20 2007