diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-01 09:47:59 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-01 09:47:59 +0000 |
commit | 44ed10320786506c4ecf348b609cfe32fbc1a66d (patch) | |
tree | 93761ecb827ee6adaf134734810338c114ec6161 /gcc/cp/decl.c | |
parent | 4b45a5371929645b6322350b2c6f77dcd11011cb (diff) | |
download | gcc-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/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 63227df5739..479914905f5 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -2416,7 +2416,7 @@ define_label (location_t location, tree name) pedwarn ("label named wchar_t"); if (DECL_INITIAL (decl) != NULL_TREE) - error ("duplicate label `%D'", decl); + error ("duplicate label %qD", decl); else { /* Mark label as having been defined. */ @@ -3936,7 +3936,7 @@ grok_reference_init (tree decl, tree type, tree init, tree *cleanup) if ((DECL_LANG_SPECIFIC (decl) == 0 || DECL_IN_AGGR_P (decl) == 0) && ! DECL_THIS_EXTERN (decl)) - error ("`%D' declared as reference but not initialized", decl); + error ("%qD declared as reference but not initialized", decl); return NULL_TREE; } @@ -4008,7 +4008,7 @@ maybe_deduce_size_from_array_init (tree decl, tree init) if (failure == 2) { if (do_default) - error ("array size missing in `%D'", decl); + error ("array size missing in %qD", decl); /* If a `static' var's size isn't known, make it extern as well as static, so it does not get allocated. If it's not `static', then don't mark it extern; finish_incomplete_decl @@ -10970,8 +10970,7 @@ revert_static_member_fn (tree decl) if (cp_type_quals (TREE_TYPE (TREE_VALUE (args))) != TYPE_UNQUALIFIED) - error ("static member function `%#D' declared with type qualifiers", - decl); + error ("static member function %q#D declared with type qualifiers", decl); args = TREE_CHAIN (args); tmp = build_function_type (TREE_TYPE (function), args); |