[Issue 1697] Internal error: ..\ztc\cgcod.c 2322 with -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 28 09:18:27 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1697
matti.niemenmaa+dbugzilla at iki.fi changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |major
Keywords| |ice-on-valid-code
Summary|Internal Compiler error |Internal error:
|2322 |..\ztc\cgcod.c 2322 with -O
------- Comment #1 from matti.niemenmaa+dbugzilla at iki.fi 2007-11-28 11:18 -------
> Removing any line of code in this example will make the error go away.
Simpler version follows. Sorry, I had to act on this statement. :-)
----
void f(int n) {}
void g(char[] s) {}
char[][] a;
class bar {
int i;
void func() {
f(i);
foreach (s; a) {
if (s == s){}
if (s[0..0] == "" && s[0..0])
g(s);
}
f(i);
}
}
----
--
More information about the Digitalmars-d-bugs
mailing list