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

            Bug ID: 101374
           Summary: [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]
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Bootstrap fails for me with

/home/rguenther/src/trunk/gcc/varpool.c:490:19: error: array subscript
'varpool_node[0]' is partly outside array bounds of 'varpool_node [0]'
[-Werror=array-bounds]
  490 |   if (!definition && !in_other_partition)
      |       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rguenther/src/trunk/gcc/varpool.c:29:
/home/rguenther/src/trunk/gcc/cgraph.h: In member function 'availability
varpool_node::_ZN12varpool_node16get_availabilityEP11symtab_node.part.0(symtab_node*)':
/home/rguenther/src/trunk/gcc/cgraph.h:1969:39: note: object
'varpool_node::<anonymous>' of size 120
 1969 | struct GTY((tag ("SYMTAB_VARIABLE"))) varpool_node : public symtab_node
      |                                       ^~~~~~~~~~~~

when in stage2.

configure --enable-languages=c++,obj-c++
make -j24 STAGE1_CFLAGS="-O2"

Reply via email to