------- Additional Comments From giovannibajo at libero dot it 2005-07-21 13:18 ------- ================================================= typedef union { struct { int i; }; struct { char c; }; } A;
A a = { 0 }; A b = {{ 0 }}; A c = {{{ 0 }}}; // { dg-error "braces" } ================================================= pr15938.cc:9: error: braces around scalar initializer for type 'int' I believe everything is correct. Volker, would you mind committing this testcase and closing this bug? -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15938