This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16667] GCC allows invalid syntax in C99 designated initializers
- From: "segher at kernel dot crashing dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2004 06:06:30 -0000
- Subject: [Bug c/16667] GCC allows invalid syntax in C99 designated initializers
- References: <20040722060313.16667.segher@kernel.crashing.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From segher at kernel dot crashing dot org 2004-07-22 06:06 -------
I just discovered that with -pedantic GCC outputs the following warning:
warning: obsolete use of designated initializer without `='
Perhaps this should be unconditional on -pedantic? Or better yet, upgraded
to an error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16667