OSDN Git Service

PR c++/21686
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2005 09:47:18 +0000 (09:47 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 May 2005 09:47:18 +0000 (09:47 +0000)
* semantics.c (finish_id_expression): Fix quoting in error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100140 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/semantics.c

index aa8b26c..a54ca60 100644 (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
index 6955291..1316ef3 100644 (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;
                }