https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88065
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-11-16 Known to work| |8.2.0 Target Milestone|--- |9.0 Ever confirmed|0 |1 Known to fail| |9.0 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Bisection points to r261515 as the commit that introduced the ICE: r261515 | msebor | 2018-06-12 13:14:31 -0400 (Tue, 12 Jun 2018) | 19 lines PR c/85931 - -Wsizeof-pointer-memaccess for strncpy with size of source gcc/c-family/ChangeLog: PR c/85931 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when sizeof source and destination yields the same value. gcc/ChangeLog: PR c/85931 * fold-const.c (operand_equal_p): Handle SAVE_EXPR. gcc/testsuite/ChangeLog: PR c/85931 * gcc.dg/Wstringop-truncation-3.c: New test.