diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2015-07-28 08:53:57 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-07-28 08:53:57 +0000 |
commit | 4b1cbcee3e1725c7796ad8c55a84a7a95ab77871 (patch) | |
tree | 2987b10cfbacbefc9e2d2add7920cf04f3aff46a /gcc/cp/friend.c | |
parent | f87a37c6893dc51f4c3e6fbddfcf453bd83c9215 (diff) | |
download | gcc-4b1cbcee3e1725c7796ad8c55a84a7a95ab77871.zip gcc-4b1cbcee3e1725c7796ad8c55a84a7a95ab77871.tar.gz gcc-4b1cbcee3e1725c7796ad8c55a84a7a95ab77871.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r-- | gcc/cp/friend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c index 14fc5d0..e107cee 100644 --- a/gcc/cp/friend.c +++ b/gcc/cp/friend.c @@ -329,7 +329,8 @@ make_friend_class (tree type, tree friend_type, bool complain) { error ("%qT is not a member class template of %qT", name, ctype); - inform (input_location, "%q+D declared here", decl); + inform (DECL_SOURCE_LOCATION (decl), + "%qD declared here", decl); return; } if (!template_member_p && (TREE_CODE (decl) != TYPE_DECL @@ -337,7 +338,8 @@ make_friend_class (tree type, tree friend_type, bool complain) { error ("%qT is not a nested class of %qT", name, ctype); - inform (input_location, "%q+D declared here", decl); + inform (DECL_SOURCE_LOCATION (decl), + "%qD declared here", decl); return; } |