aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-08-11 18:30:25 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-08-11 18:30:25 +0000
commite65e6212f7770bb37988649b8a56dc891bcea205 (patch)
tree85fa59ac82b177a1a61fd74e4bb3500fa1d06281 /gcc/cp/decl2.c
parent636b5d0c4c51f9b9a66c5ab422880c8a99bca966 (diff)
downloadgcc-e65e6212f7770bb37988649b8a56dc891bcea205.zip
gcc-e65e6212f7770bb37988649b8a56dc891bcea205.tar.gz
gcc-e65e6212f7770bb37988649b8a56dc891bcea205.tar.bz2
decl2.c (build_call_from_tree): Fix uninitialized variable.
* 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
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 9072e9e..7b10a75 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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