[Bug bootstrap/101374] [12 Regression] bootstrap failure varpool.c:490:19: error: array subscript 'varpool_node[0]' is partly outside array bounds of 'varpool_node [0]' [-Werror=array-bounds]

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 8 07:48:55 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101374

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reverting g:a110855667782dac7b674d3e328b253b3b3c919b gets me past this failure
point.

I'll note the printed location is bogus as well, it points to

/* Return variable availability.  See cgraph.h for description of individual
   return values.  */
enum availability
varpool_node::get_availability (symtab_node *ref)
{
  if (!definition && !in_other_partition)   <----
    return AVAIL_NOT_AVAILABLE;
  if (!TREE_PUBLIC (decl))

it might eventually warn on this->definition though?


More information about the Gcc-bugs mailing list