aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-07-12 01:33:47 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-07-12 01:33:47 +0000
commit12cf89fae251c176d37fa37392072a9650f6d4cc (patch)
tree7a29bc1859143741c7e914f78e715d6ffa1d2baf /gcc/cp/parser.c
parent597073ace8549d2a934a1fe7d9402e1f63e91220 (diff)
downloadgcc-12cf89fae251c176d37fa37392072a9650f6d4cc.zip
gcc-12cf89fae251c176d37fa37392072a9650f6d4cc.tar.gz
gcc-12cf89fae251c176d37fa37392072a9650f6d4cc.tar.bz2
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
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c4
1 files changed, 2 insertions, 2 deletions
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;