For diagnostics about an initializer, I think it would be better to give the location of the initializer rather than the declaration. Maybe use

location_t loc = EXPR_LOC_OR_LOC (init, DECL_SOURCE_LOCATION (decl));

?

Jason

Reply via email to