diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2005-05-25 09:47:18 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2005-05-25 09:47:18 +0000 |
commit | 910dc5cc95597b9dbd5077f228fe1b9fa22b7f23 (patch) | |
tree | d64409484c05086a96eefabde703636ba436969a | |
parent | 5bf6892e61eee174c1ceabb561a9cd0b1b6b1c1f (diff) | |
download | gcc-910dc5cc95597b9dbd5077f228fe1b9fa22b7f23.zip gcc-910dc5cc95597b9dbd5077f228fe1b9fa22b7f23.tar.gz gcc-910dc5cc95597b9dbd5077f228fe1b9fa22b7f23.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index aa8b26c..a54ca60 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 6955291..1316ef3 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 - ? "%<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; } |