On 11/1/19 10:06 AM, Paolo Carlini wrote:
Hi again,
On 31/10/19 16:56, Paolo Carlini wrote:
Hi,
yesterday I noticed that we want to forward the location parameter of
cp_build_binary_op to composite_pointer_type and then
composite_pointer_error. Note, for the time being at least, this is
always for CPO_COMPARISON, the other two composite_pointer_operation
cases aren't involved - and the various functions (eg,
common_pointer_type) forward input_location - but I'm consistently
changing all the pedwarn, emit_diagnostic, and error_at anyway to use
the location.
In fact, build_conditional_expr_1, which passes CPO_CONDITIONAL_EXPR,
has available a suitable location, thus we can extend my previous patch
and forward that too instead of input_location. Tested as usual
x86_64-linux.
Thanks, Paolo.
/////////////////////
OK.