On 05/09/2012 08:21 AM, Paolo Carlini wrote:
Is unapplied because I was really nervous due to the wrong location (thus caret) of the error call, at the end of the whole condition. Now, I'm wondering, shall we consistently use error_at (location_of (expr), ... for the error messages produced by the *convert* functions?
Sure. Note that as an alternative to error_at (location_of (expr) you can just use %q+E; the + means "use the location of this argument".
The below quick fix makes me *much* more happy, the caret points to the closed round brace of the b() call. Can I trust all the exprs to come with an embedded location *at least* as accurate as input_location, normally better?
I would think so, yes. If an expression doesn't have a location, location_of/%q+E will just use input_location.
Jason