summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-09 06:44:59 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-09 06:44:59 +0000
commit140beb32c0234948397c5341d09e3f85f8b8fe68 (patch)
tree5294726e6e5dba23baa9740839dd2ce182abadc9 /gcc
parent2e52ac87f42b897e3f731d83724eca845693fa24 (diff)
downloadgcc-140beb32c0234948397c5341d09e3f85f8b8fe68.tar.gz
* call.c (build_op_delete_call): Fix quotation in warning message.
* decl.c (grokdeclarator): Quote keyword in error message. * pt.c (check_for_bare_parameter_packs): Fix quotation in error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134130 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/call.c2
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/cp/pt.c2
4 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index eb6a9e47aec..17b09a761ca 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,10 @@
2008-04-09 Volker Reichelt <v.reichelt@netcologne.de>
+ * call.c (build_op_delete_call): Fix quotation in warning message.
+ * decl.c (grokdeclarator): Quote keyword in error message.
+ * pt.c (check_for_bare_parameter_packs): Fix quotation in error
+ message.
+
* parser.c (cp_parser_check_type_definition): Print error string
directly rather than using "%s".
(cp_parser_postfix_expression): Fix quotation.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 29dda07426f..9835c86e3a2 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4260,7 +4260,7 @@ build_op_delete_call (enum tree_code code, tree addr, tree size,
if (alloc_fn)
{
if (!placement)
- warning (0, "no corresponding deallocation function for `%D'",
+ warning (0, "no corresponding deallocation function for %qD",
alloc_fn);
return NULL_TREE;
}
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 15ebf29d61d..ccdcf379544 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -7892,7 +7892,7 @@ grokdeclarator (const cp_declarator *declarator,
if (virtualp
&& (current_class_name == NULL_TREE || decl_context != FIELD))
{
- error ("virtual outside class declaration");
+ error ("%<virtual%> outside class declaration");
virtualp = 0;
}
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index dc14fd28c88..40662d91668 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -2727,7 +2727,7 @@ check_for_bare_parameter_packs (tree t)
if (parameter_packs)
{
- error ("parameter packs not expanded with `...':");
+ error ("parameter packs not expanded with %<...%>:");
while (parameter_packs)
{
tree pack = TREE_VALUE (parameter_packs);