aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index b28746b6dfc..da7ace71ada 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -440,7 +440,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
doesn't work for varargs. */
if (varargs_function_p (function))
- error ("generic thunk code fails for method `%#D' which uses `...'",
+ error ("generic thunk code fails for method %q#D which uses %<...%>",
function);
DECL_RESULT (thunk_fndecl) = NULL_TREE;
@@ -649,12 +649,14 @@ do_build_assign_ref (tree fndecl)
if (CP_TYPE_CONST_P (TREE_TYPE (field)))
{
- error ("non-static const member `%#D', can't use default assignment operator", field);
+ error ("non-static const member %q#D, can't use default "
+ "assignment operator", field);
continue;
}
else if (TREE_CODE (TREE_TYPE (field)) == REFERENCE_TYPE)
{
- error ("non-static reference member `%#D', can't use default assignment operator", field);
+ error ("non-static reference member %q#D, can't use "
+ "default assignment operator", field);
continue;
}