OSDN Git Service

* decl2.c (build_call_from_tree): Fix uninitialized variable.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Aug 2002 18:30:25 +0000 (18:30 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Aug 2002 18:30:25 +0000 (18:30 +0000)
* parse.y (parse_finish_call_expr): Likewise.
* repo.c (old_args, old_dir, old_main): Const-ify.

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

gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parse.y
gcc/cp/repo.c

index fe1802b..976fb10 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * decl2.c (build_call_from_tree): Fix uninitialized variable.
+       * parse.y (parse_finish_call_expr): Likewise.
+       * repo.c (old_args, old_dir, old_main): Const-ify.
+
 2002-08-11  Gabriel Dos Reis  <gdr@nerim.net>
 
        * decl.c (duplicate_decls): Replace DECL_SOURCE_FILE +
index 9072e9e..7b10a75 100644 (file)
@@ -3497,7 +3497,10 @@ build_call_from_tree (tree fn, tree args, bool disallow_virtual)
       fn = TREE_OPERAND (fn, 0);
     }
   else
-    template_id = NULL_TREE;
+    {
+      template_id = NULL_TREE;
+      template_args = NULL_TREE;
+    }
 
   f = (TREE_CODE (fn) == OVERLOAD) ? get_first_fn (fn) : fn;
   /* Make sure we have a baselink (rather than simply a
index 1134939..4fc8706 100644 (file)
@@ -4140,7 +4140,10 @@ parse_finish_call_expr (tree fn, tree args, int koenig)
                  name = TREE_OPERAND (name, 0);
                }
              else 
-               template_id = NULL_TREE;
+               {
+                 template_id = NULL_TREE;
+                 template_args = NULL_TREE;
+               }
 
              if (BASELINK_P (name))
                fn = name;
index e27d8c2..64c6ec8 100644 (file)
@@ -47,7 +47,7 @@ static GTY(()) tree original_repo;
 static char *repo_name;
 static FILE *repo_file;
 
-static char *old_args, *old_dir, *old_main;
+static const char *old_args, *old_dir, *old_main;
 
 static struct obstack temporary_obstack;