diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-28 08:53:57 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-28 08:53:57 +0000 |
commit | 66ed189dce802c9fc8b0dcae0e6ead6046651af6 (patch) | |
tree | 2987b10cfbacbefc9e2d2add7920cf04f3aff46a /gcc/cp/semantics.c | |
parent | 95328f382d997be538eb74889fe80332b5e38b91 (diff) | |
download | gcc-66ed189dce802c9fc8b0dcae0e6ead6046651af6.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226308 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 1277c2d6d6c..44f9f7acaa3 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3182,7 +3182,7 @@ process_outer_var_ref (tree decl, tsubst_flags_t complain) inform (0, "lambda in local class %q+T cannot " "capture variables from the enclosing context", TYPE_CONTEXT (closure)); - inform (input_location, "%q+#D declared here", decl); + inform (DECL_SOURCE_LOCATION (decl), "%q#D declared here", decl); } return error_mark_node; } @@ -3192,7 +3192,7 @@ process_outer_var_ref (tree decl, tsubst_flags_t complain) error (VAR_P (decl) ? G_("use of local variable with automatic storage from containing function") : G_("use of parameter from containing function")); - inform (input_location, "%q+#D declared here", decl); + inform (DECL_SOURCE_LOCATION (decl), "%q#D declared here", decl); return error_mark_node; } return decl; |