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
This commit is contained in:
Volker Reichelt 2005-05-25 09:47:18 +00:00 committed by Volker Reichelt
parent 5bf6892e61
commit 910dc5cc95
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-05-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/21686
* semantics.c (finish_id_expression): Fix quoting in error message.
2005-05-25 DJ Delorie <dj@redhat.com>
* decl.c (duplicate_decls): Move warning control from if() to

View file

@ -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
? "%<auto%> variable" : "parameter"));
error (TREE_CODE (decl) == VAR_DECL
? "use of %<auto%> variable from containing function"
: "use of parameter from containing function");
cp_error_at (" %q#D declared here", decl);
return error_mark_node;
}