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).

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to