]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl2.c (build_call_from_tree): Fix uninitialized variable.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 11 Aug 2002 18:30:25 +0000 (18:30 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 11 Aug 2002 18:30:25 +0000 (18:30 +0000)
* 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.

From-SVN: r56208

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

index fe1802b796af6f315f88f9dd0a48f23c7b7c37de..976fb1082ebb6dd7ff5edddfc21e01dcc9bd9c67 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 9072e9e828eca2ff3008fa283a461f0bba6b322e..7b10a75c8145496e615e87eb00ecb5b308297e52 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 1134939f84042cf456354e5e7996a550e6cae2a0..4fc870669bc783c63cb45b80f6e9ca93a15d7ecc 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 e27d8c2199e97d1eadbe72db462d5101229c2946..64c6ec873fcc0e62248301186b42571a9bd9470a 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;