summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-01 09:47:59 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-01 09:47:59 +0000
commit44ed10320786506c4ecf348b609cfe32fbc1a66d (patch)
tree93761ecb827ee6adaf134734810338c114ec6161 /gcc/cp/error.c
parent4b45a5371929645b6322350b2c6f77dcd11011cb (diff)
downloadgcc-44ed10320786506c4ecf348b609cfe32fbc1a66d.tar.gz
Convert diagnostics to use quoting flag q 9/n
* typeck.c (build_x_unary_op, convert_member_func_to_ptr, get_delta_difference): Use new quotation style. * repo.c (reopen_repo_file_for_write): Likewise. * pt.c (do_type_instantiation): Likewise. * parser.c (cp_parser_diagnose_invalid_type_name): * name-lookup.c (push_overloaded_decl, set_decl_namespace): * error.c (cp_print_error_function, print_instantiation_full_context): Likewise. * decl.c (define_label, grok_reference_init, maybe_deduce_size_from_array_init, revert_static_member_fn): * decl2.c (check_classfn): Likewise. * class.c (add_method, check_field_decls, layout_class_type, resolve_address_of_overloaded_function): Likewise. * call.c (build_x_va_arg, build_over_call): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index a5861124947..9c7642a533f 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2152,7 +2152,7 @@ cp_print_error_function (diagnostic_context *context,
if (current_function_decl == NULL)
pp_base_string (context->printer, "At global scope:");
else
- pp_printf (context->printer, "In %s `%s':",
+ pp_printf (context->printer, "In %s %qs:",
function_category (current_function_decl),
cxx_printable_name (current_function_decl, 2));
pp_base_newline (context->printer);
@@ -2206,7 +2206,7 @@ print_instantiation_full_context (diagnostic_context *context)
/* Avoid redundancy with the the "In function" line. */;
else
pp_verbatim (context->printer,
- "%s: In instantiation of `%s':\n",
+ "%s: In instantiation of %qs:\n",
LOCATION_FILE (location),
decl_as_string (TINST_DECL (p),
TFF_DECL_SPECIFIERS | TFF_RETURN_TYPE));