[C++ PATCH] Improve location of CALL_EXPRs (PR c++/60862)

Jason Merrill jason@redhat.com
Sat Sep 13 01:04:00 GMT 2014


On 09/12/2014 04:52 PM, Marek Polacek wrote:
> +	    protected_set_expr_location (postfix_expression, loc);

Let's use the location of the (, which should just be token->location at 
this point.  So column 17 instead of 13 in the new test.  OK with that 
change.

In some cases postfix_expression won't be a CALL_EXPR at this point; it 
might be a TARGET_EXPR or an INDIRECT_REF.  But I suppose setting the 
location on whatever it happens to be will work well enough for now.

Jason



More information about the Gcc-patches mailing list