On Sun, 19 Oct 2014, Marek Polacek wrote:

> It turned out that there is another spot where we need to allow
> initializing objects with static storage duration with compound
> literals even in C99 -- when the compound literal is inside the
> initializer.  Fixed in the same way as previously.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2014-10-18  Marek Polacek  <pola...@redhat.com>
> 
>       PR c/63567
>       * c-typeck.c (output_init_element): Allow initializing objects with
>       static storage duration with compound literals even in C99 and add
>       pedwarn for it.
> 
>       * gcc.dg/pr63567-3.c: New test.
>       * gcc.dg/pr63567-4.c: New test.

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to