This is the mail archive of the gcc-patches@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: [C] improve missing initializers diagnostics


On Sat, 21 Apr 2012, Manuel López-Ibáñez wrote:

> 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
> 
> 	* c-typeck.c (pop_init_level): Improve diagnostics.
> testsuite/
> 	* gcc.dg/m-un-2.c: Update.
> 	* gcc.dg/20011021-1.c: Update.

OK.  The strange "near initialization" formulation came in with a gcc2 
merge in 1999 (r24879), replacing previous diagnostics that did identify 
the field directly in the message, and never really made sense to me; I 
think naming the field directly in the diagnostic is better for all such 
diagnostics.

-- 
Joseph S. Myers
joseph@codesourcery.com

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