From: Volker Reichelt Date: Wed, 25 May 2005 09:47:18 +0000 (+0000) Subject: re PR c++/21686 (weird quoting in an error message) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=910dc5cc95597b9dbd5077f228fe1b9fa22b7f23;p=gcc.git re PR c++/21686 (weird quoting in an error message) PR c++/21686 * semantics.c (finish_id_expression): Fix quoting in error message. From-SVN: r100140 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index aa8b26c4a11..a54ca60803e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-05-25 Volker Reichelt + + PR c++/21686 + * semantics.c (finish_id_expression): Fix quoting in error message. + 2005-05-25 DJ Delorie * decl.c (duplicate_decls): Move warning control from if() to diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 6955291d536..1316ef34888 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2760,9 +2760,9 @@ finish_id_expression (tree id_expression, if (context != NULL_TREE && context != current_function_decl && ! TREE_STATIC (decl)) { - error ("use of %s from containing function", - (TREE_CODE (decl) == VAR_DECL - ? "% variable" : "parameter")); + error (TREE_CODE (decl) == VAR_DECL + ? "use of % variable from containing function" + : "use of parameter from containing function"); cp_error_at (" %q#D declared here", decl); return error_mark_node; }