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 PATCH] Another locus improvements (PR c/60257)


On Fri, May 02, 2014 at 12:11:02AM +0000, Joseph S. Myers wrote:
> On Sat, 26 Apr 2014, Marek Polacek wrote:
> 
> > What is worth mentioning is that the "(near initialization for X)"
> > message seems next to useless to me now with caret diagnostics (?).
> 
> The caret diagnostics point to the initializer.  "near initialization" 
> says (or should say) what field GCC thinks is being initialized, which may 
> not be obvious from looking at the initializer (consider a 100-element 
> structure where the initializer for one element is missing, resulting in 
> errors for subsequent elements having the wrong type; being told which 
> element GCC thinks matches the initializer with a bad type may help you 
> find where the missing initializer is).

I see, thanks.  It would be nice if we could show the previous
initialization in some note message...

	Marek


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