+2014-05-15 Jason Merrill <jason@redhat.com>
+
+ * call.c (print_conversion_rejection): Use loc consistently.
+
2014-05-14 Paolo Carlini <paolo.carlini@oracle.com>
* cp-tree.h (DIRECT_LIST_INIT_P): Add.
/* Conversion of implicit `this' argument failed. */
if (!TYPE_P (info->from))
/* A bad conversion for 'this' must be discarding cv-quals. */
- inform (input_location, " passing %qT as %<this%> "
+ inform (loc, " passing %qT as %<this%> "
"argument discards qualifiers",
from);
else
{
if (info->n_arg >= 0)
inform (loc, " conversion of argument %d would be ill-formed:",
- info->n_arg+1);
+ info->n_arg + 1);
perform_implicit_conversion (info->to_type, info->from,
tf_warning_or_error);
}
from, info->to_type);
else
inform (loc, " no known conversion for argument %d from %qT to %qT",
- info->n_arg+1, from, info->to_type);
+ info->n_arg + 1, from, info->to_type);
}
/* Print information about a candidate with WANT parameters and we found