This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]