Hi! On Wed, 2022-09-07 14:00:25 +0200, Richard Biener wrote: > On Wed, Sep 7, 2022 at 12:58 PM Jan-Benedict Glaw wrote: > > ../../gcc/gcc/tree-ssa-forwprop.cc:1258:42: error: array subscript 1 is outside array bounds of 'tree_node* [1]' [-Werror=array-bounds] > > 1258 | op[i - 1] = fold_convert_loc (loc, boolean_type_node, > > | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ > > 1259 | fold_build2_loc (loc, > > | ~~~~~~~~~~~~~~~~~~~~~ > > 1260 | BIT_IOR_EXPR, > > | ~~~~~~~~~~~~~ > > 1261 | boolean_type_node, > > | ~~~~~~~~~~~~~~~~~~ > > 1262 | op[i - 1], > > | ~~~~~~~~~~ > > 1263 | op[i])); > > | ~~~~~~~ > > In file included from ../../gcc/gcc/system.h:707, > > from ../../gcc/gcc/tree-ssa-forwprop.cc:21: > > ../../gcc/gcc/../include/libiberty.h:733:36: note: at offset 8 into object of size [0, 8] allocated by '__builtin_alloca' > > 733 | # define alloca(x) __builtin_alloca(x) > > | ~~~~~~~~~~~~~~~~^~~ > > ../../gcc/gcc/../include/libiberty.h:365:40: note: in expansion of macro 'alloca' > > 365 | #define XALLOCAVEC(T, N) ((T *) alloca (sizeof (T) * (N))) > > | ^~~~~~ > > ../../gcc/gcc/tree-ssa-forwprop.cc:1250:22: note: in expansion of macro 'XALLOCAVEC' > > 1250 | tree *op = XALLOCAVEC (tree, isize); > > | ^~~~~~~~~~ > > cc1plus: all warnings being treated as errors > > make[1]: *** [Makefile:1146: tree-ssa-forwprop.o] Error 1 > > make[1]: Leaving directory '/var/lib/laminar/run/gcc-pru-elf/1/toolchain-build/gcc' > > make: *** [Makefile:4583: all-gcc] Error 2 > > can you open a bugreport please? Just opened (after re-verification) as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106900 Thanks, Jan-Benedict --