From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2B3D3870890; Tue, 4 Apr 2023 16:12:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2B3D3870890 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680624721; bh=ChZahn32IZxVNEt7J/LTXcM19wj91R54Mzs7hL6Zv58=; h=From:To:Subject:Date:From; b=Hdi8I50rYZFAiS5ZoauuCwOrI9/lfp30+hSPm5c1grreE262YjBU9l8jbyZAb5fu1 tYbi+fgEQvokSL3i3tFzqJMGnspLBVDo/0gxHUnu4ePH4OSda55AonjPRzliUaSSr+ mM7tYpIWhANrSYxQCBWL+2rLYjTyZ9NT6Vkdaj3A= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109412] New: [13 Regression] ICE in fold_convert_loc, at fold-const.cc:2627 Date: Tue, 04 Apr 2023 16:12:01 +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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109412 Bug ID: 109412 Summary: [13 Regression] ICE in fold_convert_loc, at fold-const.cc:2627 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20220821 and 20220828 : (derived from c-c++-common/ubsan/bounds-21.c) $ cat z1.c int i; int foo (void) { return ++i; } int main () { char a() =3D {}; a[foo ()] =3D a[foo()] | 'a'; if (i !=3D 2) __builtin_abort (); a[foo()] |=3D 'a'; if (i !=3D 3) __builtin_abort (); } $ gcc-13-20230402 -c z1.c z1.c: In function 'main': z1.c:6:3: error: function 'a' is initialized like a variable 6 | char a() =3D {}; | ^~~~ z1.c:6:3: internal compiler error: in fold_convert_loc, at fold-const.cc:26= 27 0xa76ede fold_convert_loc(unsigned int, tree_node*, tree_node*) ../../gcc/fold-const.cc:2627 0x7741de pop_init_level(unsigned int, int, obstack*, unsigned int) ../../gcc/c/c-typeck.cc:9382 0x7a7f8e c_parser_braced_init ../../gcc/c/c-parser.cc:5775 0x7a9651 c_parser_initializer ../../gcc/c/c-parser.cc:5675 0x7c3ec8 c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2564 0x7c293b c_parser_compound_statement_nostart ../../gcc/c/c-parser.cc:6208 0x7c2d83 c_parser_compound_statement ../../gcc/c/c-parser.cc:6105 0x7c4d7f c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2841 0x7cf0af c_parser_external_declaration ../../gcc/c/c-parser.cc:1925 0x7cf9ed c_parser_translation_unit ../../gcc/c/c-parser.cc:1779 0x7cf9ed c_parse_file() ../../gcc/c/c-parser.cc:24632 0x84a4e1 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1248=