[PATCH] c/71552 - Confusing error for incorrect struct initialization

2016-06-18 Thread Martin Sebor
The attached patch slightly changes the order in which initializers are checked for type compatibility to issue the same error for static initializers of incompatible types as for automatic objects, rather than rejecting the former for their lack of constness first. I originally closed the bug as

Re: [PATCH] c/71552 - Confusing error for incorrect struct initialization

2016-06-20 Thread Joseph Myers
On Sat, 18 Jun 2016, Martin Sebor wrote: > The attached patch slightly changes the order in which initializers > are checked for type compatibility to issue the same error for static > initializers of incompatible types as for automatic objects, rather > than rejecting the former for their lack of

Re: [PATCH] c/71552 - Confusing error for incorrect struct initialization

2016-06-30 Thread Martin Sebor
On 06/20/2016 08:52 AM, Joseph Myers wrote: On Sat, 18 Jun 2016, Martin Sebor wrote: The attached patch slightly changes the order in which initializers are checked for type compatibility to issue the same error for static initializers of incompatible types as for automatic objects, rather than

Re: [PATCH] c/71552 - Confusing error for incorrect struct initialization

2016-07-06 Thread Jeff Law
On 06/30/2016 04:38 PM, Martin Sebor wrote: On 06/20/2016 08:52 AM, Joseph Myers wrote: On Sat, 18 Jun 2016, Martin Sebor wrote: The attached patch slightly changes the order in which initializers are checked for type compatibility to issue the same error for static initializers of incompatibl

Re: [PATCH] c/71552 - Confusing error for incorrect struct initialization

2016-07-06 Thread Martin Sebor
On 07/06/2016 03:55 PM, Jeff Law wrote: On 06/30/2016 04:38 PM, Martin Sebor wrote: On 06/20/2016 08:52 AM, Joseph Myers wrote: On Sat, 18 Jun 2016, Martin Sebor wrote: The attached patch slightly changes the order in which initializers are checked for type compatibility to issue the same err