[Bug c/17515] invalid structure initializer accepted
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 16 09:54:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list