------- Comment #31 from janis at gcc dot gnu dot org 2007-03-23 20:51 ------- As for the puzzle in comment #30, I don't understand it either, but didn't try very hard. This works for the current testsuite and the patch:
struct g g2 = { { 0, { 1 } } }; /* { dg-error "nested context.*g2.f.x" "nested" } */ struct h { int x[0]; int y; }; struct h h1 = { { 0 }, 1 }; /* { dg-warning "excess elements.*h1.x" "before end" } */ If you think it's important, Manuel, I'll try to figure out what was happening. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25241