On Fri, 17 Oct 2014, Marek Polacek wrote:
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2014-10-17 Marek Polacek
>
> PR c/63567
> * c-typeck.c (digest_init): Allow initializing objects with static
> storage duration with compound literals even in C99 and add pe
On Fri, Oct 17, 2014 at 03:53:46PM +, Joseph S. Myers wrote:
> On Fri, 17 Oct 2014, Marek Polacek wrote:
>
> > Building Linux kernel failed with 'error: initializer element is not
> > constant', because they're initializing objects with static storage
> > duration with (T){ ...} - and that isn
On 17 October 2014 20:04, Manuel López-Ibáñez wrote:
> On 17 October 2014 19:33, Joseph S. Myers wrote:
>> On Fri, 17 Oct 2014, Manuel López-Ibáñez wrote:
>>
>>> Thus, I drafted some guidelines
>>> at:https://gcc.gnu.org/wiki/Better_Diagnostics#guidelines
>>>
>>> Please, could you take a look and
On 17 October 2014 19:33, Joseph S. Myers wrote:
> On Fri, 17 Oct 2014, Manuel López-Ibáñez wrote:
>
>> Thus, I drafted some guidelines
>> at:https://gcc.gnu.org/wiki/Better_Diagnostics#guidelines
>>
>> Please, could you take a look and comment whether I got it right/wrong?
>
> Yes, that looks rig
On Fri, 17 Oct 2014, Manuel López-Ibáñez wrote:
> Thus, I drafted some guidelines
> at:https://gcc.gnu.org/wiki/Better_Diagnostics#guidelines
>
> Please, could you take a look and comment whether I got it right/wrong?
Yes, that looks right to me.
--
Joseph S. Myers
jos...@codesourcery.com
> The Right Thing is for -pedantic not to cause errors, only warnings
> (-pedantic-errors being needed for an error). So rather than having this
> conditional for whether to allow the extension at all, make the
> conditional code do a pedwarn (if flag_isoc99, otherwise there will
> already have be
On Fri, 17 Oct 2014, Marek Polacek wrote:
> Building Linux kernel failed with 'error: initializer element is not
> constant', because they're initializing objects with static storage
> duration with (T){ ...} - and that isn't permitted in gnu99/gnu11.
>
> I think the Right Thing is to allow some
Building Linux kernel failed with 'error: initializer element is not
constant', because they're initializing objects with static storage
duration with (T){ ...} - and that isn't permitted in gnu99/gnu11.
I think the Right Thing is to allow some latitude here and enable it
even in gnu99/gnu11 unles