This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,committed] Last old-style quotation issues in the C++ frontend
- From: Volker Reichelt <v dot reichelt at netcologne dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Apr 2008 08:48:29 +0200 (CEST)
- Subject: [PATCH,committed] Last old-style quotation issues in the C++ frontend
The following trivial patch fixes two old-style quotations and adds
a missing quotation in the C++ frontend. After the patches for the parser
that I just committed, there should be no more old-style quotations in
the C++ frontend.
Bootstrapped and regtested on i686-pc-linux-gnu.
Committed as obvious to mainline.
Regards,
Volker
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.
=================================================================
--- gcc/cp/call.c 2008-03-20 17:13:52 +0100
+++ gcc/cp/call.c 2008-03-21 22:17:16 +0100
@@ -4260,7 +4260,7 @@ build_op_delete_call (enum tree_code cod
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;
}
=================================================================
--- gcc/cp/decl.c 2006-12-28 02:41:59 +0100
+++ gcc/cp/decl.c 2006-12-28 02:41:26 +0100
@@ -7892,7 +7892,7 @@ grokdeclarator (const cp_declarator *dec
if (virtualp
&& (current_class_name == NULL_TREE || decl_context != FIELD))
{
- error ("virtual outside class declaration");
+ error ("%<virtual%> outside class declaration");
virtualp = 0;
}
=================================================================
--- gcc/cp/pt.c 2007-05-25 22:27:32 +0200
+++ gcc/cp/pt.c 2007-05-27 19:23:23 +0200
@@ -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);
=========================================================================