This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/17515] invalid structure initializer accepted


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]