From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 745343858010; Thu, 8 Jul 2021 22:35:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 745343858010 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/101372] [12 Regression] Bootstrap failure compiling gcc/cp/module.cc Date: Thu, 08 Jul 2021 22:35:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2021 22:35:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101372 --- Comment #5 from Segher Boessenkool --- On powerpc64-linux the failure is In file included from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: In function 'tree_node* identifier(const cpp_hashnode*)', inlined from 'bool module_state::read_macro_maps()' at /home/segher/src/gcc/gcc/cp/module.cc:16305:10: /home/segher/src/gcc/gcc/tree.h:1089:58: error: array subscript -1 is outsi= de array bounds of 'cpp_hashnode [288230376151711743]' [-Werror=3Darray-bounds] 1089 | ((tree) ((char *) (NODE) - sizeof (struct tree_common))) | ^ /home/segher/src/gcc/gcc/cp/module.cc:277:10: note: in expansion of macro 'HT_IDENT_TO_GCC_IDENT' 277 | return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast (node))); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/segher/src/gcc/gcc/tree.h:23, from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: /home/segher/src/gcc/gcc/tree-core.h: In member function 'bool module_state::read_macro_maps()': /home/segher/src/gcc/gcc/tree-core.h:1445:24: note: at offset -24 into obje= ct 'tree_identifier::id' of size 16 1445 | struct ht_identifier id; | ^~ In file included from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: In function 'tree_node* identifier(const cpp_hashnode*)', inlined from 'void module_state::install_macros()' at /home/segher/src/gcc/gcc/cp/module.cc:16915:10: /home/segher/src/gcc/gcc/tree.h:1089:58: error: array subscript -1 is outsi= de array bounds of 'cpp_hashnode [288230376151711743]' [-Werror=3Darray-bounds] 1089 | ((tree) ((char *) (NODE) - sizeof (struct tree_common))) | ^ /home/segher/src/gcc/gcc/cp/module.cc:277:10: note: in expansion of macro 'HT_IDENT_TO_GCC_IDENT' 277 | return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast (node))); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/segher/src/gcc/gcc/tree.h:23, from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: /home/segher/src/gcc/gcc/tree-core.h: In member function 'void module_state::install_macros()': /home/segher/src/gcc/gcc/tree-core.h:1445:24: note: at offset -24 into obje= ct 'tree_identifier::id' of size 16 1445 | struct ht_identifier id; | ^~ In file included from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: In function 'tree_node* identifier(const cpp_hashnode*)', inlined from 'void module_state::install_macros()' at /home/segher/src/gcc/gcc/cp/module.cc:16933:16: /home/segher/src/gcc/gcc/tree.h:1089:58: error: array subscript -1 is outsi= de array bounds of 'cpp_hashnode [288230376151711743]' [-Werror=3Darray-bounds] 1089 | ((tree) ((char *) (NODE) - sizeof (struct tree_common))) | ^ /home/segher/src/gcc/gcc/cp/module.cc:277:10: note: in expansion of macro 'HT_IDENT_TO_GCC_IDENT' 277 | return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast (node))); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/segher/src/gcc/gcc/tree.h:23, from /home/segher/src/gcc/gcc/c-family/c-common.h:26, from /home/segher/src/gcc/gcc/cp/cp-tree.h:40, from /home/segher/src/gcc/gcc/cp/module.cc:209: /home/segher/src/gcc/gcc/tree-core.h: In member function 'void module_state::install_macros()': /home/segher/src/gcc/gcc/tree-core.h:1445:24: note: at offset -24 into obje= ct 'tree_identifier::id' of size 16 1445 | struct ht_identifier id; | ^~ cc1plus: all warnings being treated as errors=