From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5D9B3857811; Tue, 14 Jun 2022 10:23:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5D9B3857811 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105969] New: [12/13 Regression] ICE in Floating point exception Date: Tue, 14 Jun 2022 10:23:06 +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 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: Tue, 14 Jun 2022 10:23:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105969 Bug ID: 105969 Summary: [12/13 Regression] ICE in Floating point exception 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 20220522 and 20220529 : $ cat z1.c #include struct A { char a[0][0][0]; }; extern struct A b[][2]; void f (void) { sprintf (b[0][0].a[1][0], "%s", b[0][0].a[1][0]); } $ gcc-13-20220612 -c z1.c -Wall z1.c: In function 'f': during GIMPLE pass: warn-printf z1.c:9:1: internal compiler error: Floating point exception 9 | } | ^ 0xc2a33f crash_signal ../../gcc/toplev.cc:322 0x184c71e get_origin_and_offset_r ../../gcc/gimple-ssa-sprintf.cc:2322 0x184c749 get_origin_and_offset_r ../../gcc/gimple-ssa-sprintf.cc:2385 0x185267f get_origin_and_offset ../../gcc/gimple-ssa-sprintf.cc:2447 0x185267f handle_printf_call(gimple_stmt_iterator*, pointer_query&) ../../gcc/gimple-ssa-sprintf.cc:4714 0xdfd21d strlen_pass::check_and_optimize_call(bool*) ../../gcc/tree-ssa-strlen.cc:5461 0xdfdbe1 strlen_pass::check_and_optimize_stmt(bool*) ../../gcc/tree-ssa-strlen.cc:5665 0xdfdfb4 strlen_pass::before_dom_children(basic_block_def*) ../../gcc/tree-ssa-strlen.cc:5849 0x17e9284 dom_walker::walk(basic_block_def*) ../../gcc/domwalk.cc:309 0xdfe420 printf_strlen_execute ../../gcc/tree-ssa-strlen.cc:5908=