diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-08-11 18:30:25 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-08-11 18:30:25 +0000 |
commit | e65e6212f7770bb37988649b8a56dc891bcea205 (patch) | |
tree | 85fa59ac82b177a1a61fd74e4bb3500fa1d06281 /gcc/cp/decl2.c | |
parent | 636b5d0c4c51f9b9a66c5ab422880c8a99bca966 (diff) | |
download | gcc-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.c | 5 |
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 |