call.c (build_op_delete_call, [...]): Use Use DECL_SOURCE_LOCATION and "%qD" in infor...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 28 Jul 2015 08:53:57 +0000 (08:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 28 Jul 2015 08:53:57 +0000 (08:53 +0000)
commit4b1cbcee3e1725c7796ad8c55a84a7a95ab77871
tree2987b10cfbacbefc9e2d2add7920cf04f3aff46a
parentf87a37c6893dc51f4c3e6fbddfcf453bd83c9215
call.c (build_op_delete_call, [...]): Use Use DECL_SOURCE_LOCATION and "%qD" in inform and pedwarn instead of "%q+D".

2015-07-28  Paolo Carlini  <paolo.carlini@oracle.com>

* call.c (build_op_delete_call, convert_like_real, build_over_call):
Use Use DECL_SOURCE_LOCATION and "%qD" in inform and pedwarn instead
of "%q+D".
* constexpr.c (explain_invalid_constexpr_fn): Likewise.
* decl.c (duplicate_decls): Likewise for warning/warning_at.
* except.c (maybe_noexcept_warning): Likewise.
* friend.c (make_friend_class): Likewise for inform.
* mangle.c (mangle_decl): Likewise for warning/warning_at.
* method.c (process_subob_fn, walk_field_subobs,
maybe_explain_implicit_delete): Likewise for inform.
* parser.c (cp_parser_lambda_introducer): Likewise.
* pt.c (check_specialization_namespace,
maybe_process_partial_specialization): Likewise for permerror.
(redeclare_class_template): Likewise for inform_n.
(coerce_template_parms, tsubst_copy_and_build): Likewise for inform.
* search.c (check_final_overrider): Likewise.
* semantics.c (process_outer_var_ref): Likewise.

From-SVN: r226308
12 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/cp/except.c
gcc/cp/friend.c
gcc/cp/mangle.c
gcc/cp/method.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/semantics.c