[Bug c/38019] Cannot use nested designated initializer with unnamed inner aggregate
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 5 13:49:00 GMT 2008
------- Comment #2 from joseph at codesourcery dot com 2008-11-05 13:47 -------
Subject: Re: Cannot use nested designated initializer with
unnamed inner aggregate
On Wed, 5 Nov 2008, rguenth at gcc dot gnu dot org wrote:
> I get
>
> t.c: In function 'vec_add':
> t.c:10: error: unknown field 'x' specified in initializer
> t.c:11: error: unknown field 'y' specified in initializer
> t.c:11: warning: excess elements in union initializer
> t.c:11: warning: (near initialization for '(anonymous)')
> t.c:12: error: unknown field 'z' specified in initializer
> t.c:12: warning: excess elements in union initializer
> t.c:12: warning: (near initialization for '(anonymous)')
>
> instead.
That matches bug 10676.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38019
More information about the Gcc-bugs
mailing list