This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13896] Initializer string warning not printed if implied NULL-terminator out of bounds
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 15:26:17 -0000
- Subject: [Bug c/13896] Initializer string warning not printed if implied NULL-terminator out of bounds
- References: <20040128132357.13896.rhajdaj@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2004-01-28 15:26 -------
I don't think there should be a warning by default, because it is a rather
common idiom. "initializer-string for array of chars is too long" would be
wrong at least.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13896