Bug 1537 – Internal error: ..\ztc\cgcod.c 1521

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-09-28T13:17:00Z
Last change time
2014-02-17T22:51:36Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2007-09-28T13:17:09Z
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; } }
Comment #1 by braddr — 2007-10-20T03:42:27Z
Fixed in 1.022/2.005