This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36489] New: Warning "initialized field overwritten" wrongly triggers with multidimensional arrays
- From: "smeuuh at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2008 16:26:15 -0000
- Subject: [Bug c/36489] New: Warning "initialized field overwritten" wrongly triggers with multidimensional arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
This code :
int t[10][10] = {
[1][2] = 1,
[1][3] = 2
};
warns with "initialized field overwritten" under -Wextra with gcc 4.3.0,
although it's perfectly valid.
Antoine Levitt
--
Summary: Warning "initialized field overwritten" wrongly triggers
with multidimensional arrays
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smeuuh at gmail dot com
GCC build triplet: i386-pc-linux
GCC host triplet: i386-pc-linux
GCC target triplet: i386-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36489