Commit e65e6212 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 636b5d0c
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 +
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment