summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-15 20:13:39 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-15 20:13:39 +0000
commit36df191037fe67e9735e04cbf3973998253b7847 (patch)
treee8a605fde60cc07f3228892dea54e391946e7703 /gcc/cp/call.c
parentcaa5d563b0c54bf7a7787834dcac78d69e8e9ef4 (diff)
downloadgcc-36df191037fe67e9735e04cbf3973998253b7847.tar.gz
2016-06-15 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (wrapup_globals_for_namespace): Use DECL_SOURCE_LOCATION and "%qF" in warning_at instead of "%q+F" in warning. (check_redeclaration_exception_specification): Likewise in pedwarn (and error, inform, for consistency). * call.c (joust): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237496 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index e2b89b8a2c4..475b380a5f0 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -9495,10 +9495,10 @@ joust (struct z_candidate *cand1, struct z_candidate *cand2, bool warn,
"default argument mismatch in "
"overload resolution"))
{
- inform (input_location,
- " candidate 1: %q+#F", cand1->fn);
- inform (input_location,
- " candidate 2: %q+#F", cand2->fn);
+ inform (DECL_SOURCE_LOCATION (cand1->fn),
+ " candidate 1: %q#F", cand1->fn);
+ inform (DECL_SOURCE_LOCATION (cand2->fn),
+ " candidate 2: %q#F", cand2->fn);
}
}
else