This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

host_integerp vs [] decls



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
...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]