This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: PR 25137: moving -Wmissing-braces to -Wextra?


Hi,

and thanks for your further guidance...

On 11/18/2009 09:26 PM, Richard Henderson wrote:
> struct S1 { int s[3], t; };
> struct S2 { struct S1 a; };
>
> struct S2 s2 = { { 1, 1, 1 }, 1 };    // no warn
This case looks somewhat special to me: my draft warns, unchanged
behavior. But note that in this case we also issue an hard error "too
many initializers for ‘S2’", with and without the patch, are you sure
it's important to clean-up somewhat the diagnostics in this case? Or you
really meant something slightly different?

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]