This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array
- 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, 20 Aug 2017 22:08:05 +0000
- Subject: [Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array
- Auto-submitted: auto-generated
- References: <bug-81141-4@http.gcc.gnu.org/bugzilla/>
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.