host_integerp vs [] decls
DJ Delorie
dj@redhat.com
Fri Sep 14 12:54:00 GMT 2001
This trivial test case segv's gcc:
void test() {
int a[][0] = {{1}};
}
Program received signal SIGSEGV, Segmentation fault.
0x82e2dc4 in host_integerp (t=0x0, pos=0) at /uberbuild/src/gcc/tree.c:3471
3471 return (TREE_CODE (t) == INTEGER_CST
[ gdb ] where
#0 0x82e2dc4 in host_integerp (t=0x0, pos=0) at /uberbuild/src/gcc/tree.c:3471
#1 0x811873c in store_constructor (exp=0x4012f280, target=0x4013b250, align=32, cleared=0, size=0)
at /uberbuild/src/gcc/expr.c:4714
#2 0x8117dc4 in store_constructor_field (target=0x4013b250, bitsize=0, bitpos=0, mode=BLKmode,
exp=0x4012f280, type=0x40137bd0, align=32, cleared=0, alias_set=0)
at /uberbuild/src/gcc/expr.c:4496
...
More information about the Gcc
mailing list