https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81141
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to comment #3) What I meant to say is: See also bug 81141 for a related request (limited to strncpy). The patch submitted there issues a warning for a small subset of the problem (strncpy) but doesn't specifically deal with zero-length arrays.