From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CFD839551E9; Mon, 14 Jun 2021 17:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CFD839551E9 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101070] New: ICE: Error reporting routines re-entered. Date: Mon, 14 Jun 2021 17:21:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Mon, 14 Jun 2021 17:21:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101070 Bug ID: 101070 Summary: ICE: Error reporting routines re-entered. Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to at least r5 : $ cat z1.cc typedef int A __attribute__((aligned(16))); void f () { A b[2]; b =3D 0; } $ cat z2.cc typedef int A __attribute__((aligned(16))); A b[2]; int p =3D &b; $ g++-12-20210613 -c z1.cc z1.cc: In function 'void f()': z1.cc:4:8: error: alignment of array elements is greater than element size 4 | A b[2]; | ^ ' Internal compiler error: Error reporting routines re-entered. 0xd444d6 layout_type(tree_node*) ../../gcc/stor-layout.c:2599 0x86a29c build_cplus_array_type(tree_node*, tree_node*, int) ../../gcc/cp/tree.c:1113 0x86d900 build_cplus_array_type(tree_node*, tree_node*, int) ../../gcc/cp/tree.c:1602 0x86d900 strip_typedefs(tree_node*, bool*, unsigned int) ../../gcc/cp/tree.c:1602 0x75ae4b type_to_string ../../gcc/cp/error.c:3336 0x75ba85 cp_printer ../../gcc/cp/error.c:4416 0x172c4be pp_format(pretty_printer*, text_info*) ../../gcc/pretty-print.c:1475 0x172056d diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info= *) ../../gcc/diagnostic.c:1275 0x1720ace diagnostic_impl ../../gcc/diagnostic.c:1437 0x17213da error_at(unsigned int, char const*, ...) ../../gcc/diagnostic.c:1760 0x8814d2 cp_build_modify_expr(unsigned int, tree_node*, tree_code, tree_nod= e*, int) ../../gcc/cp/typeck.c:8903 0x881f69 build_x_modify_expr(unsigned int, tree_node*, tree_code, tree_node= *, int) ../../gcc/cp/typeck.c:9033 0x7d4f2a cp_parser_assignment_expression ../../gcc/cp/parser.c:10198 0x7d5b6c cp_parser_expression ../../gcc/cp/parser.c:10327 0x7d8787 cp_parser_expression_statement ../../gcc/cp/parser.c:12071 0x7e5983 cp_parser_statement ../../gcc/cp/parser.c:11867 0x7e6254 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12219 0x7e630f cp_parser_compound_statement ../../gcc/cp/parser.c:12168 0x8017f8 cp_parser_function_body ../../gcc/cp/parser.c:24236 0x8017f8 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24287=