Compiling a program like this with -Wall doesn't generate a warning, even though the result very likely is not intended: struct s { int a; }; struct s s = { .a = 5, .a = 6, }; Can a duplicate initializers warning please be added? Thank you!
-- Summary: Duplicate dot initializer warning Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: agruen at suse dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24010