public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105969] New: [12/13 Regression] ICE in Floating point exception
@ 2022-06-14 10:23 gscfq@t-online.de
  2022-06-15  8:50 ` [Bug c/105969] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2022-06-14 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

            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 <stdio.h>
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-19 11:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 10:23 [Bug c/105969] New: [12/13 Regression] ICE in Floating point exception gscfq@t-online.de
2022-06-15  8:50 ` [Bug c/105969] " rguenth at gcc dot gnu.org
2022-06-15 11:15 ` cvs-commit at gcc dot gnu.org
2022-06-15 15:57 ` [Bug c/105969] [12 " joseph at codesourcery dot com
2022-07-15  8:58 ` [Bug c/105969] [12 Regression] ICE in Floating point exception since r13-750-g10d1986aee47c5 marxin at gcc dot gnu.org
2022-07-19 11:38 ` cvs-commit at gcc dot gnu.org
2022-07-19 11:39 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).