This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C patch] Fix non-regression part of PR29092
On Wed, 27 Sep 2006, Paolo Bonzini wrote:
> > Not having this extension at gnu99 was a deliberate decision, in recognition
> > of how C99's compound literals differ from the old GNU "constructor
> > expressions" extension; that is, the compound literal is a temporary object
> > and you wouldn't allow such initialization with a named object instead of a
> > compound literal as initializer.
> >
> > However, this decision was for structure and union types and different
> > considerations may apply for vector types which aren't in the standard at
> > all.
>
> If so, here is a patch that does this -- actually this is how I had solved the
> problem first, and then decided it was too much of a hack...
>
> I had already bootstrapped this patch on i686-pc-linux-gnu before posting the
> other one.
This one is OK.
--
Joseph S. Myers
joseph@codesourcery.com