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;
}
}