https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88956
Bug ID: 88956 Summary: [9 Regression] ICE: Floating point exception Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20180708 and 20180722 : $ cat z1.c const char a[0][0] = { }; char b[3]; void f (void) { __builtin_memcpy (b, a, 2); } $ gcc-9-20180708 -c z1.c $ $ gcc-9-20190120 -c z1.c during GIMPLE pass: lower z1.c: In function 'f': z1.c:3:6: internal compiler error: Floating point exception 3 | void f (void) | ^ 0xa8afef crash_signal ../../gcc/toplev.c:326 0x837abc fold_array_ctor_reference ../../gcc/gimple-fold.c:6732 0x837abc fold_ctor_reference(tree_node*, tree_node*, poly_int<1u, unsigned long> const&, poly_int<1u, unsigned long> const&, tree_node*, unsigned long*) ../../gcc/gimple-fold.c:6925 0x7ccb38 string_constant(tree_node*, tree_node**, tree_node**, tree_node**) ../../gcc/expr.c:11533 0x6b11ee c_strlen(tree_node*, int, c_strlen_data*, unsigned int) ../../gcc/builtins.c:676 0x83c2c0 gimple_fold_builtin_memory_op ../../gcc/gimple-fold.c:760 0x83dbbf gimple_fold_builtin ../../gcc/gimple-fold.c:3849 0x8407db gimple_fold_call ../../gcc/gimple-fold.c:4354 0x8407db fold_stmt_1 ../../gcc/gimple-fold.c:5019 0x1197021 lower_stmt ../../gcc/gimple-low.c:387 0x1197021 lower_sequence ../../gcc/gimple-low.c:217 0x1196e88 lower_gimple_bind ../../gcc/gimple-low.c:473 0x1197bb1 lower_function_body ../../gcc/gimple-low.c:110 0x1197bb1 execute ../../gcc/gimple-low.c:195