This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17515] invalid structure initializer accepted
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2004 09:54:21 -0000
- Subject: [Bug c/17515] invalid structure initializer accepted
- References: <20040916093811.17515.andrae.behrens@sms-demag.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-16 09:54 -------
We do warn about it (at least with -W -Wall):
pr17515.c:15: warning: missing braces around initializer
But the standard say this is not an error at all, structs inside structs can be initialized without braces.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17515