[Bug c/81141] missing warning using sizeof a/sizeof *a with a zero-length array
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 10 23:38:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81141
--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #4)
> (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.
wait that's this bug
More information about the Gcc-bugs
mailing list