From c7dda1e388309a4fffe95c0903b1029c2669b20c Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 15 Dec 1998 13:59:57 +0000 Subject: [PATCH] decl.c (poplevel): Make sure ns_binding is initialized. 1998-12-15 Mark Mitchell * decl.c (poplevel): Make sure ns_binding is initialized. From-SVN: r24332 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/decl.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 57d129a48aa..7955e4c3aa6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 1998-12-15 Mark Mitchell + * decl.c (poplevel): Make sure ns_binding is initialized. + * decl.c (finish_function): Undo inadvertant change in previous patch. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 81fa59f226a..356293ab97b 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -1365,7 +1365,9 @@ poplevel (keep, reverse, functionbody) if (!outer_binding) ns_binding = IDENTIFIER_NAMESPACE_VALUE (DECL_NAME (link)); - + else + ns_binding = NULL_TREE; + if (outer_binding && (BINDING_LEVEL (outer_binding) == current_binding_level->level_chain))