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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-09-13
      Known to work|                            |8.2.0
     Ever confirmed|0                           |1
      Known to fail|                            |9.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The ICE was introduced in r261515 (gcc 9.0.0):

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.

Reply via email to