[C] improve missing initializers diagnostics
Joseph S. Myers
joseph@codesourcery.com
Tue Apr 24 21:51:00 GMT 2012
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
More information about the Gcc-patches
mailing list