[Issue 1537] New: Internal error: ..\ztc\cgcod.c 1521
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 28 11:17:09 PDT 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 at digitalmars.com
ReportedBy: samukha at 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;
}
}
--
More information about the Digitalmars-d-bugs
mailing list