egcs-20000306 ICE in `size_binop', at fold-const.c:1873

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Sun Mar 12 08:29:00 GMT 2000


The following code, cut to size out of ISOFS in the current linux kernels,
ICEs on SPARC and i686 at least:

tst.c: In function `main':
tst.c:9: Internal compiler error in `size_binop', at fold-const.c:1873

struct {
   char a[5];
} *p;

int main ()
{
   int i = -1;
   
   if(p->a[-i])
     return 1;
}
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile                               +56 32 672616


More information about the Gcc-bugs mailing list