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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-02-21
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Thanks for the test case.  The root cause is the same as in bug 84474.  The
warnings in both of these test cases are issued in gimple-fold.c (see
gimple_fold_builtin_strncpy), long before the code in tree-ssa-strlen.c has
run.

The difference between this case and the one in bug 84474 is that here the next
statement is already available.  With that, I think there may be a way to avoid
the subset of the warnings in this report.

Reply via email to