This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Feb 2018 23:24:47 +0000
- Subject: [Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy
- Auto-submitted: auto-generated
- References: <bug-84468-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468
--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Yes, all the relevant tests pass with the patch. There is no warning for
either the test case in comment #0 or the one in comment #11. The change from
v1 of the patch is just the addition of test for null to avoid the ICE.