From 12cf89fae251c176d37fa37392072a9650f6d4cc Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 12 Jul 2004 01:33:47 +0000 Subject: call.c (build_operator_new_call): Avoid using push_to_top_level. * call.c (build_operator_new_call): Avoid using push_to_top_level. (build_new_op): Adjust call to lookup_function_nonclass. * name-lookup.c (identifier_type_value): Adjust call to lookup_name_real. (lookup_name_real): Add block_p parameter. (lookup_name_nonclass): Adjust call to lookup_name_real. (lookup_function_nonclass): Likewise. (lookup_name): Likewise. * name-lookup.h (lookup_name_real): Change prototype. (lookup_name_nonclass): Likewise. * parser.c (cp_parser_lookup_name): Likewise. From-SVN: r84543 --- gcc/cp/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/cp/parser.c') diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index fc5e8a5..a7fe73d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -14245,7 +14245,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name, /*protect=*/0, is_type); /* Look it up in the enclosing context, too. */ decl = lookup_name_real (name, is_type, /*nonclass=*/0, - is_namespace, + /*block_p=*/true, is_namespace, /*flags=*/0); parser->object_scope = object_type; parser->qualifying_scope = NULL_TREE; @@ -14255,7 +14255,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name, else { decl = lookup_name_real (name, is_type, /*nonclass=*/0, - is_namespace, + /*block_p=*/true, is_namespace, /*flags=*/0); parser->qualifying_scope = NULL_TREE; parser->object_scope = NULL_TREE; -- cgit v1.1