This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17129] all gcc fail to warn zero sized array.
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2004 09:11:48 -0000
- Subject: [Bug c/17129] all gcc fail to warn zero sized array.
- References: <20040821014249.17129.ellson@research.att.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-08-21 09:11 -------
Subject: Re: all gcc fail to warn zero sized array.
On Sat, 21 Aug 2004, pinskia at gcc dot gnu dot org wrote:
> Use -pendatic to find errors like these.
It looked more to me like the bug reporter wanted diagnosis of the
out-of-bounds array accesses rather than the use of a size 0 array. In
which case this would be a duplicate of bug 8268 which requests such
diagnostics.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17129